The respiratory system performs multiple vital functions. Ventilation moves air in and out of lungs. Gas exchange transfers oxygen into blood and removes carbon dioxide. The system also eliminates water vapor and helps regulate blood pH by controlling carbon dioxide levels.