There are numerous causes of testis pain, including infection, inflammation, and varicoceles. Most of the time, testis pain can be treated non-surgically. However, in rare cases, a varicocele repair or denervation of the spermatic cord procedure can be helpful.