The nervous system is vital to all living organisms in that it works with the endocrine system to sense and respond to factors in the external environment and control its internal environment.