Inhalation: When one inhales or breathes in, the intercostal muscles contract, and the ribs move upward. At the same time, the diaphragm contracts and move downward, increasing the volume of thoracic cavity (chest cavity). As a result, pressure inside the thoracic cavity become lower, and air is breathed into the lungs.