The parts of brain which functions as endocrine glands are hypothalamus, pituitary body, pineal body.