4 wire switch is the brake lights.
2 wires for brake circuit and 2 wires for crs.
Grey plugs are the cruise circuit, must be one on each switch.
The cruise uses both switches as a fail safe.
Orange/blue trace and blue/forgot what color trace wires are brakes, join these together to confirm the brake circuit is working then swap these onto the other switch as you have 2 switches the same, if the wires reach...... otherwise change the switch positions and connect the brake wires that way, very rare for 2 switches to fail at the same time especially when one wasn't being used (some vehicles have 2 different switches and this can't be done) make sure they are connected to the 2 terminals on the switch closest to the engine bay otherwise the brake lights will be on all the time and off when you press the pedal.
To remove the switches they just pull out carefully, to install push the brake pedal slightly in and push both switches in as far as they'll go, then grab the brake pedal and slowly pull it back towards the seat, the switches will click into the correct position.
Crs plugs must be on the terminals closest to the drivers seat and brakes must be on the terminals closest to the engine bay.
Crs switches are no (normally open) and brake is nc (normally closed) contacts