Thanks for writing in to us.
At 27 years, it is unlikely that you might be having a MI.
1. If the pain is along chest wall then you may have had a muscle pull.
2. A pain that gets sharper at the end of breathing in may be related to a pleuritic chest pain
3. Pains which are increasing as you lay down is most likely due to acid reflux
4. Cardiac pain is very severe, associated with sweating.
You may get an ECG done just for peace of mind.
Please get checked up for gastritis
Hope this helps.