"The plug has two wires, black and red. The motor has three wires, black, red and white. "
This is just a guess but I would think if the motor is switchable between 12 and 24v, then if would make sense that the red is 12V
the white is 12V
and the black is common
this way on the motor you can...