A Universal Theory of Brain Function