Undo the screws holding the two halves oftthe casing together
Split the casing, taking care to note on a bit of paper, which bits go where
Lift out (probably) the motor taking care to note on a bit of paper, which wires go where
Reassembly is the reverse of the above procedure.
Alternative buy a cheap new one from B&Q or similar for the same money as a new motor