If inhaling causes a sharp, painful twinge then you could have anything from a pulled muscle to a broken rib.