please i need help

my motor only have 2 wire....drawing have 3 wire....how i must assemble it??

Your question does not make sense.

The thing in the drawing is a servo which is why it has 3 wires - Power, GND and signal.

You cannot simply substitute a DC motor without also changing the code.

And you CANNOT connect a DC motor directly to Arduino I/O pins. You need some sort of motor driver, or a transistor between the Arduino and the motor.

...R