Mains power goes from the fused spur to a junction box or wiring centre (center)
From there to the programmer - room stat and cylinder stat - the diverter valve and the boiler.
The boiler electronics feed the circulating pump and allow for pump over-run.
All of this depends on the specifics of the boiler and its associated components.
Do not attempt this at home.
Stay safe...
September 2016