Probably a stuck microswitch on one of the valves. Is it an S-plan? Easy to confirm...with programmer off for both heating and hot water there should be no voltage on the brown of each valve. With no voltage on the brown there should be no voltage on the oranges of the valves if there is voltage on the oranges then one of the micro switches is stuck between grey permanent live and the orange. Isolate the supply, disconnect the oranges, make them safe for testing, turn supply on and see what orange is live this is the one with the stuck microswitch. Most valves you can buy a replacement head for and wire it back in like for like.