Gas pains

I have horrible pains in my stomach because I need to pass gas but I just cannot and I cannot poop either sorry TMI but can anyone tell me something that will help me pass gas or to relieve this pain