Pain in the testis can be due to simple infection,torsion etc.
As there is pain on touch,it might be some inflammation.
Bacteria like E.coli
can cause epididymitis
Colour doppler of the scrotum
will confirm the diagnosis.
These STD's will not take 9 months to produce symptoms.
Please get a Colur doppler of scrotum and get colour doppler.
If it is epididymitis,you have to take medicines.There is no role of surgery
Wish you good health