What can cause a torn esophagus?

Many things. Spontaneous rupture can be caused by vomiting. Other causes are iatrogenic, or caused by accidental instrumentation, such as endoscopy.
A few things. Trauma, reflux disease, swallowing a sharp foreign object and cancer.
Torn esophagus. Vomiting foreign body endoscopy acid ingestion.