Welcome To HealthcareMagic.
The pain you are experiencing is mostly due to Ulcer or reflux you have.It is important for you to get this thoroughly evaluated , reason being the dreadful complications due to reflux and ulcer. There could be chances of sudden bleeding inside your stomach or a cancer growing from the ulcer.To avoid these complication , please get an Upper endoscopy
done .This test would show the extent of ulcer and its nature depending on which treatment would be decided.
Meanwhile take an antacid
for relief .Please attend your Doctor as early as possible.
Hope you find this helpful.