pain in the testis is called orchialgia
.Pain in testis radiates to pelvic and abdomen region when there is involvement of spermatic cord
also.It could be an infection also.However its advisable for u to visit a urologist/gen surgeon to get evaluated.STD
with your limited history is hard to rule out.
All the best