According to a new study, vigorous activities such as running and swimming can help improve your brain’s functioning.