The nervous system coordinates all body functions and enables adaptation to internal and external changes. It is composed of nerve cells called neurons and supporting cells called neuroglia. The autonomic nervous system regulates involuntary functions like heart rate and respiration. It has three subdivisions: the sympathetic nervous system mobilizes the body during fight or flight, the parasympathetic nervous system enables rest and digestion, and the enteric nervous system controls the gastrointestinal system.