The endocrine and nervous system work together to maintain homeostasis. The endocrine system consists of various glands that produce hormones that control many of the body's processes.