If the valve mechanism that stops digested food in the stomach from flowing back up the esophagus does not function properly, acid juices are able to go up into the esophagus and can sometimes reach the mouth. This acid can irritate, destroy, and scar the lining of the esophagus.