Question: how does the diaphragm and intercostal muscles work?
Answer: When you breathe in, or inhale, your diaphragm contracts and moves downward. This increases the space in your chest cavity, and your lungs expand into it. The muscles between your ribs also help enlarge the chest cavity. They contract to pull your rib cage both upward and outward when you inhale.