Plumbing Problems in the UK? Ask a Plumber Now.
It sounds from your descrition that the set with the yellow cable is a thermostat and the red black and earth are boiler switched live.
But as the plumber could have used absolutely any colour cable he /she wanted there is no real way of knowing.
you say they are attached to the boiler so can you say what terminals they are connected to on the boiler and /or take some photo's .