When you breath in the diaphragm contracts or the lungs expanded creating a greater volume and less pressure so the air fills the lungs. When you breath out the diaphragm relaxes creating a smaller volume and greater volume so the air rushes out from the lungs.