At your age it is very unlikely that it is heart related, especially when it depends on your position.
There are a lot of possible causes for pain/discomfort on the chest, for instance stomach/esophagus irritation.
If it persists or happens more often, go to your GP to check it out.