Scrotal pain and painful scrotal masses or swelling can be caused by testicular torsion, appendiceal torsion, epididymitis, epididymo-orchitis, scrotal abscess, trauma, strangulated inguinal hernias, orchitis, and Fournier gangrene.