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