How do electric brakes work?

Electric brakes are activated by a magnet in the brake drum. The magnet is energized by an electronic brake controller in the tow vehicle. Newer tow vehicles typically have the brake controller installed in the dash, however aftermarket controllers are readily available. If you are inquiring as to which magnet wire is positive and negative, the wires are interchangeable on the brake magnets and can be wired in either direction.