neutral and earth go in the neutral and Earth terminals.
Live goes to the live and both relay commons (2 and 5)
The switched lives go to their respective N/O relay terminals (3 for CH and 6 for DHW)
The two wires from the thermostat (unless connecting wirelessly) go to T1 and T2 and are not polarity sensitive.
Then you carry out the usual electrical tests before turning it back on.