How does the nervous system help the body maintain homeostasis?

How does the nervous system help the body maintain homeostasis?