Pneumothorax may occur for a number of causes, one of which is significant thoracic trauma in which case rib fractures are a common association.
Prompt identification and management is key - an x-ray is normally all that is required in the first instance.