what is the coordinate function of the nervous endocrine and reproductive system