when the diaphragm and external intercostal muscles contract?
When drawing breath (i.e., during inspiration), the external intercostal muscles and diaphragm contract simultaneously. This causes the thorax to expand and inflate the lungs by creating negative pressure inside the thoracic cavity. During expiration, the contraction of these muscles ceases, causing them to relax.