Like a bellows
The diaphragm is a muscle.
When it contracts it moves downward creating negative pressure in the lungs and causing air to enter the lungs. When it relaxes, positive pressure is created in the lungs, causing air to be expelled. When part of the diaphragm does not work it is difficult to breathe.