Turn off the breaker switch for the socket at the breaker box and unfasten the screws that are securing the electrical socket cover plate to the electrical box with a screwdriver. Set the cover plate out of the way.
Loosen the screws that are holding the socket fitting onto the electrical box with the screwdriver. Pull the fitting away from the box so you can access the electrical terminals on the fitting.
Unfasten the screws that are securing the wires to the socket fitting with a screwdriver and remove the wires off the fitting. Discard the old socket fitting.
Fasten the black wire to the silver terminal on the new socket fitting and attach the red wire to the brass terminal on the fitting. Connect the green wire to the green terminal on the fitting and push the wires inside the electrical box.
Connect the new socket fitting to the electrical box with screws and attach the cover plate to the front of the electrical box with screws. Turn the breaker switch for the socket back on at the breaker box.