There are differences between having a sprained muscle in the ribs, or a broken rib. A broken rib tends to be more painful, may or may not protrude and can cause extreme swelling and bruising. A muscle strain will have bruising, swelling and pain but it will not protrude and will be less severe.