kenmore washer dead

it acts like there is no power, i unplug it and as long as i can make the outlet spark it will power on and work untill it quits again.

any ideas?