The way they are connected is via brain which connect with two communication systems and the hypothalamus is tiny collection of Nellie which controls behaviour placed at the base of forebrain. The hypothalamus controls the elementary needs such as sleep, hunger, thirst and sex needs, also controls stress and emotion responses. The hormones released by other glands are also control by hypothalamus.
Hypothalamus and posterior