Depends on the context. If you are talking about a medicine or treatment that improves numerous functions of the brain, then use "to". If you are talking about how much better off you would be if your brain functioned better, then use "of".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.