Briefly describe the roles of the endocrine and nervous system. Explain how they work together to maintain homeostasis in a human body.