Attach the wires to a power source. Tape or glue them to batteries, with the positive terminal on the positive end of the battery, and vice-versa. Alternately, strip the USB wires with the male end, then cut off all except for the black and red wires. Attach the red wire to the positive terminal on the motor, the black to the negative.