The problem is not explained properly here. What I can see in your history is acidity getting better with medicines, loss of appetite.
I the problem is GERD- Gastro Esophageal Reflux Disease
, there, you need to change your eating habits.Eat bland diet, no spicy diet, eat small portions for 3-5 times, eat minimum 1 hours before going to bed, use pillow, loose wight. Simultaneously use Pantop/Pepsid.