Chest pain

When ever I lay down for a long amount of time, I get this bad pain in my chest and also in my back. I can’t really describe what it feels like. But it wakes me up when I’m sleeping. And when I sit up, it goes away some. What could it be?