It could just be gas. I've been getting pains if I eat too much. I've been trying to eat a small dinner and then eat a snack before bed. If I do have pains I eat a little bit of fresh pineapple. I feel so much better after.
It's probably really bad gas pains.
If it's after eating id call your doctor - it might be something going on with your stomach that needs attention