Unplug the power cord from the wall socket.
Turn the knobs clockwise on the faucets in the laundry room where the hoses connect to the washer.
Remove the two hoses from the pipe fixtures on the back of the washer, using pliers. If the fixture is broken off inside one of the hoses, which is no longer attached to the appliance, skip this step.
Remove the access plate around the two pipe fixtures, taking out the screws with a screwdriver.
Disconnect the two wires attached to the valve assembly at the top or on the side, depending on your model. Each wire pulls off a metal contact on the valve assembly.
Compress the clamp on the hose attached to the valve, using pliers. Pull off the hose.
Remove the screws holding the valve assembly to the mounting plate inside the washer. Take out the part.
Secure the new part to the mounting plate with the screws.
Squeeze the clamp with pliers and slide the hose onto the nozzle on the new valve.
Slide the connectors on the two wires onto the contacts on the valve assembly.
Fit the two holes in the access plate over the two pipe fixtures on the new valve. Secure the access plate with the screws.
Attach the two supply hoses to the threaded connectors on the pipe fixtures and tighten with pliers.
Twist the knobs on the faucets to the left to release the water through the hoses.
Plug in the washer power cord.