Hi,
How are you? Are there other symptoms present? Stomach pain may be caused by indigestion, possible peptic ulcer disease and other gastointestinal issues. Antacid and medications helping with gastric motility may help provide relief. Avoiding spicy food, skipping of meals and caffeine-rich drinks like tea, coffee, or soda may also help. If it persists, have this checked by your doctor for proper evaluation. Take care and do keep us posted.
Sounds like gas buildup. If stools are infrequent also, try Metamucil to loosen things up.