Ribs are for protection i think and diaphragm is the muscle controlling inhaling and exhaling.
Also: the rib muscles can help the breathing process, which is useful when the diaphragm is weak, constricted, or to get an extra-big breath.
Breathing from the diaphragm makes the belly move in and out as the lungs extend downwards.
Breathing from the rib muscles makes the chest expand and rise.
Diaphragm
diaphragm
diaphragm....
Position of; Intercostals.. In-between the ribs, running obliquely downwards Diaphragm.. Mid chest separating the thoratic and abdominal cavities. Action; ..Keeps us breathing when working with the ribs, sternum and lungs. ..expands and retracts with breathing
They provide a rigid cage for the action of the diaphragm to allow the lungs to expand. Without ribs, your chest would simply "suck in" whenever the diaphragm moved down, and you would be unable to breathe. This is why a "sucking chest wound" is so dangerous.... it's allowing outside air to surround your lungs, instead of having your lungs fill with air.
Ribs move with the diaphragm to assist in breathing. While they are fairly rigid, just look at how your chest expands and contracts while breathing. If they were immovable, there would be no movement.
The ribs enclose the thoracic cavity providing bony protection for the vital organs of the thorax-the heart and lungs.Because the thorax must expand and contract to allow breathing, the ribs move slightly in a "bucket handle" type of motion with each breath.Therefore the ribs are involved with breathing.
The stems involved in breathing: the ribs, intercostal muscles, diaphragm as well as the lungs and the tubes which bring air into the body from the outside.
The larynx or voice box provides a passage. but the alveoli help
Your diaphragm lowers and your ribs expand outwards
Im not expert, but isn't it the diaphragm and rib muscles, the muscles between the ribs, internal and external intercostals.
The intercostal muscles between the ribs control the movement of the thorax and rib cage. The diaphragm, which separates the thorax from the abdomen controls the volume of the thorax. As the intercostal muscles contract the rib cage is drawn upwards and out, the diaphragm flattens so the volume inside the thorax increases therefore, air is drawn in.