Cognitive Functions and the Brain: Mechanisms and Implications