Pain in the testicular region can be attributed to:
In your post you have not mentioned about any history of trauma.
So, an infective or inflammatory cause can also be thought of, such as orchitis or epididymo-orchitis
Under such condition, you need to take antibiotics along with analgesics under the guidance of a Urologist
Investigation like Complete blood count
, Urine analysis & Ultrasound
scan of the scrotal region will be helpful in clinching the diagnosis.
Wishing a Good Health.
Thanks & take care.