Sometimes the valve mechanism that stops digested food in the stomach from flowing back up into the esophagus does not work right. This causes acid juices to go up into the esophagus and sometimes all the way to the mouth. This acid can irritate, destroy and scar the lining of the esophagus.