Usually, stomach contents cannot flow back into the esophagus due to a contracted esophageal sphincter. It gets to the small intestine through the pylorus.