Diaphragm contracts and flattens, external intercostal muscles lift ribs outwards and upwards, increasing chest cavity volume and decreasing air pressure in lungs, causing air to rush in
Diaphragm relaxes and moves upwards, internal intercostal muscles allow ribs to return to resting position, decreasing chest cavity volume and increasing air pressure in lungs, causing air to be forced out