Talk with your doc
Like dr. Kwok says, there are many different reasons - some more serious than others [including gas, gut blockage, female problems, kidney stones].
Lots of different plumbing with lots of different ways things can not work as well. Do some detective work. How long has your tummy been hurting? What's new? Anything you ate? Drank? Any new medications, over-the-counter things, supplements