Green and purple are the wires TO the Motor from switch.
I just fixed my motor and switch. It was blowing fuses. Metal piece was snorting switch and my motor was jamming on itself. Took a while to figure out but the can needs to be tightly secured to the back. Brushed were dirty and needed a re lube.
How many controls do you have? I have seat UP/DN For and AFT, so only 4 pins on the main plug under the seat. It takes up to 8 per seat.
They go on the motor tabs.