Check for infection. I would advise an evaluation by either pcp or urologist. This could be an std or prostatis (which doesn't have to be sexually transmitted) this is usually easily treated with antibiotic. There are other causes as well, but be evaluated. Prostatis can cause periodic pain on urination or orgasm.