Some of the conditions that can cause a testicle lump, swelling, and/or pain include: 1  Torsion of the testicle. 2  Injury. 3  Infection. Hydrocele. 4  Varicocele. Epididymal cyst/spermatocele.  Inguinal 1  hernia. Kidney  stones.