These motors contain a profiled cam and microswitches that sense the position of the shaft connected to the water valve. Depending on whether it is a 2 or 3 way valve depends on the number of microswitches. These switches then connect into the logic wiring of the wider CH system to sense whether the valve is in the correct position for the requirements of the system (either OFF, calling for HEAT, calling for HEAT/WATER, or calling for BOTH).
What is happening is that the microswitch or the cam arrangement has gone u/s and the motor cannot work out when to stop rotating.
Since the motor and control cams/microswitches are all part of the same sub-assembly, Grumpy is correct that you will probably have to replace the motor assembly - a relatively straight-forward task that does not involve having to tinker with the plumbing side.