Cramps & bloating

I have really bad cramps & bloating ? What pills can I buy for that?