if the connectors on the harness wires are old and worn out, find proper size
female bullet connectors to replace them, but make sure the problem isn't that the wires are too short or improperly routed and getting knocked off by the pedal arm when you use the brakes - should be a wire clip nearby to hold them
Bill