Testicular pain can have a number of different causes, some of which constitute a medical emergency. Trauma is a common cause of testicular pain when the scrotum is injured, most commonly as a result of blunt trauma. Testicular torsion is a condition in which the testicle twists inside the scrotum, causing an interruption in the blood supply to the testicle. Testicular torsion is an emergency, since interruption of the blood supply can lead to tissue death of the affected testicle. Inflammation of the testicle or epididymis can also lead to testicular pain. Sometimes, pain from other conditions, such as kidney stones, may be perceived in the scrotum.
Source: http://www.rxlist.com