SEVERE RIB PAIN!! Not Pregnant!

Last night 3AM I woke up to horrible rib pain.. I couldn't even sleep because the pain went to my back!! I took 3 pain pills and a hour later it went away but now 4 hours later I woke up to even worse pain and it hurts to breathe! I've never had this before:'(