Modelling the brain: Elementary components to explain ensemble functions