Is this heart burn or something

Brenna
So I have never experienced heart burn. I haven't eaten anything but a sandwich for lunch today and was laying down in my room. Then it just randomly start happening a sharp horrible pain everytime I breathed in or out. It would stop for a couple seconds then start again and so on. So far right now it hasn't started again. HELP ANYONE? WHAT IS THIS?