When you inhale and exhale, you actually breathe. When you inhale, your intercostal muscles between ribs and diaphragm contract. This increases the space in chest cavity so your lungs can expand and the air enters the lungs. When you exhale, intercostal muscles and diaphragm relax reducing the space in the chest which leads to removing the air from the lungs.