These symptoms can be due to kidney stones or infection, some infection of the genitourinary tract or due to inguinal hernia. In cases of hernia, a prominent bulge along with testicular pain is there and in cases of kidney or ureteric stones, pain during micturition may also be there.
Lab investigations like complete blood examination, urine examination, ultrasound lower abdomen and sometimes a urethral swab will help in diagnosis. Treatment will be started thereafter.My advise would be to consult a urologist.
I sincerely hope that helps. Take care and please do keep me posted on how you are doing.