Nexium is used to treat a condition called “gastroesophageal reflux disease” (GERD). This is where acid from the stomach escapes into the gullet (esophagus) causing pain, inflammation and heartburn. Heartburn is a burning feeling rising from the stomach or lower chest up towards the neck.