After masturbating, I get a pain in my stomach, why would that occur?

See you MD. Consult your gynecologist. A history and physical exam may help to get to the root of your problem.