Thank you for the timely suggestion, Doctor.
Hi there,
The common cause of pain in your case could be sexual arousal which does not terminate in ejaculation. This can cause congestion in the sperm carrying tubes and a sensation of pain in the testicle.This is a harmless condition and disappears within few minutes. If the symptoms are severe and persistent you should get investigated for other conditions. Any direct injury, infection of the testes and epididymus, epidydymal cyst, varicocoele, hernia and torsion of the testes can cause testicular pain. A clinical evaluation may be necessary. Do write to me again.
Best wishes and take care!