For three port valve, it is a Y plan, you need three signal outputs from any programmer, either Nest or EP2002. They are: hot water off, hot water on and heating on.
If you are sure the heating on is connected correctly, then check further to the three port valve.