The lungs play a passive role in breathing, but ventilation requires muscular effort. When the diaphragm contracts, the thoracic cavity enlarges, causing the lungs to inflate. During forced inspiration when a large volume of air is inspired, external intercostal muscles act as a second set of inspiratory muscles.