Some times trauma or epidymoorchitis causes testicular pain
and require analgesics,rest, plenty of oral fluids and support of testes. One thing to rule out is torsion of testis which is an emergency. So consult immediately your Pediatrician
for the examination of scrotum
and the need for advice on any surgical referral.