Pain in your ribs that is sharp when you breath could be a number of things.
Among the less serious complaints would be a muscle spasm
of the cartilage
in your ribs) or a cracked or broken rib. Rib pain can also herald more ominous things as well. Definitely worth getting checked out with your doc.
Answer assisted by David Miller, Medical Student