Thank you for the query.
Such symptom can be caused by inguinal hernia which has reached the scrotum
. This can happen suddenly during lifting heavy objects, coughing or even walking. In such case pain in the scrotum and some lump should be present. The pain should aggravate while standing or coughing.Herniated disc
is also one of possibilities. In such case, pain should radiate to the leg, numbness
can be present.
Other possible reason is strained muscle in this area.
I suggest you to visit your doctor, have physical examination and consider some tests like scrotum and groin ultrasound
, urine analysis, blood work. Orthopedist consult might be also necessary.
Hope this will help.