The brain gets energy from glucose in carbohydrates. “Eat carbohydrate-rich foods such as whole grain, cereal, bread and pasta to keep the brain functioning optimally,” recommends Dr.