Hello, history of trauma, torsion of testis, epidydemitis, are the common causes of testicular pain . Rare causes include inguinal hernia, orchitis,
kidney stones . From how long you have testicular pain .ultrasound- This non-invasive test can evaluate the blood flow to the testicle (if testicular torsion is suspected).You better consult urologist once.