Cognition and Communication in the Evolution of Language