Both plugs have two wires, but the connector on one is smaller than the other.
The smaller is the power, and goes on the left.
The wider is the "PWM" (tilt control), and goes to any one of three on the right. The one nearest the back of the camera is used by the factory. If it becomes damaged, either of the other two can be used.