This question is way too broad. It really depends on having some idea of when the problem occurs/what causes it & what if anything you've tried before.
My daughter (16) finally self-diagnosed irritable bowel syndrome & so long as she doesn't eat the wrong foods she's fine but any wrong food & she can be in major pain.
But there are other reasons/causes including, stress, other illnesses, allergies etc.