Is there any trauma? Is child having fever? Testicular pain
may be due to trauma, underlying infection like epididymo orchitis or rarely due to torsion of testes. By history trauma can be ruled out and in epididymoorchitis testes is tender to touch and if you lift the testis slightly up it causes relief from pain where as pain will increase in torsion of testis and torsion of testis should be ruled out as early as possible by doing ultrasound
of the scrotum with doppler study . You can give analgesic
in prescribed dosage, proper rest and adequate oral fluids. Consult your Pediatrician
or Pediatric surgeon if pain still persist.