A crumbling old school building has been replaced by a £25 million centre than can take more than twice as many pupils