It can be connect to DC and AC power supply.
It can be used for some your projects, it's a pity to throw to trash with wash machine.
Step 1: Connector
First and second are heat fuse, these wires we leave not connected.
Wires can be organized little different, it's dependent on type of wash machine, but if you observe color of wires, It will be OK and should work.
Step 2: Wiring
Gray and black wire are connected to power source. It's doesn't matter, which is to L and N, or + and -, It will always rotate in the same direction.