Orchitis is caused by a bacterial or viral infection, whereas testicular torsion occurs when the testicle rotates on the spermatic cord. The symptoms of these two conditions can appear to be similar, but the cause and treatment plan are quite different. However, both these conditions can cause infertility if left untreated.