which gland of endocrine and nervous system controls the other gland in the body