Pain in the testicle has to be examined and investigated.
Please consult a surgeon or urologist
You need to get him an Ultrasound scrotum
for exact diagnosis.
IT can be due to simple infection,but hernia
has to be excluded.
If you come back with above results,i will clarify further
Wish him good health