How does the neuroendocrine system maintain homeostasis in the body?

How does the neuroendocrine system maintain homeostasis in the body?