In combination, the intercostal muscles and diaphragm cause the volume inside the thorax to increase, thus lowering the pressure. The difference between the pressure inside the lungs and atmospheric pressure creates a gradient, thus causing the air to enter the lungs