They also showed that lower blood calcium and magnesium levels are linked to poorer performance in cognitive tests. As we age, our body’s systems and organs slowly change, including the brain.