Product review (5 stars): Whirlpool Washer Lid Switch 3949238
This item came as new in the package.  It was complete with the wiring and connector.

After installing it, my washer now drains and spins again.