How is the nervous system connected to the endocrine system and the circulatory system?