explaine the main function of the nervous system in your own words