b) diaphragmThe diaphragm moves downward or contracts to increase the space in the thoracic cavity. This downward motion inflates the lungs and contracts the ribs. The heart's position does not change during inspiration or expiration