how will you differentiate the sensory and motor neurons based on their fanction