What your doctor can do. If you have pain in the scrotum or testicle you need to see your doctor, or go to a genitourinary medicine clinic . Your doctor will test you for infection, and will try to work out the cause of the pain. Even if no infection is evident, your doctor may prescribe an antibiotic. Your doctor may prescribe a low dose of amitriptyline; this is a drug that helps to block pain. (In higher doses it is also used as an antidepressant, but not in this case.) Pelvic floor physiotherapy can help, but it is available only in specialized hospitals.