Linking Brain Structure, Activity, and Cognitive Function through Computation