If these muscles do not function properly, gastric juices can go back into the esophagus. This can cause heartburn known as gastroesophageal reflux, or GER.