An injury or infection of the epididymis causes epididymitis, a painful condition that can take months to heal. Sometimes the testicle has to be removed. There does not seem to be any single cause, or treatment for this condition. Some doctors treat it with antibiotics, some take a "wait and see" attitude. At times just one testicle is affected and at others, both.