I was lying face down on a massage table when I was told to take a really deep breath and when I did I got really bad pain in my back. What caused it?

See your doctor. Pain that severe needs to be worked up by your doctor in person. He/she will listen to you, perform an examination and possibly order some tests to see what's wrong with you.