What are three ways that the endocrine system affects behavior?