how to stop cramps

I'm having bad period cramps and I took pain medicine and it did not work the pain getting bad to the point where I can't even eat my food  and suggestions on what I can do to stop it