Retching (also called dry heaving or gagging) is when the motion of the stomach and esophagus goes backward, but there is no vomiting. It can be caused by bad smells, choking or stopping certain medications. It can also be because of stress.