The endocrine system consists of glands that secrete hormones directly into the bloodstream to regulate body functions. The major glands include the pituitary gland, thyroid gland, parathyroid glands, adrenal glands, pancreas, ovaries, and testes. Hormones regulate metabolic rate, water and mineral balance, immune system reactions, and sexual functioning in order to maintain homeostasis.