Lower abdominal pain

Everytime I try to masturbate I get to the peak where I'm about to cum but I don't anyways afterwards I get terrible lower abdominal pain for hours. What does it mean? And how can I make the pain go away?