Hi welcome to H.C.M.Forum. you have epidedimoorchitis, giving you the pain, if it is occuring recently, and not present before. if it is from the begening, could be due to hernia
. what ever the reason you should consult a doctor preferably urologist
. if it is 1st one cured with medicines. 2nd needs surgery. if you have multypartners, restrict.