STOP
It's not clear what you are doing.
A servo has 3 wires, a power wire, a ground wire, and a signal wire. The signal wire carries a minute amount of current and is typically hooked up to a GPIO pin configured as PWM. The ground and power carry the full load which may be an amp or so.
The GPIO of a Pi has a 16 mA (.016A) max rating, that is sufficient for lighting LEDS (a few) and signal wires to servos. It will not directly power motors.
If you have a servo, the wire shown is fine for connecting to the signal connection of the servo.
A DC motor has 2 connections and will probably draw several hundred mA. Hooking up a DC motor directly is a recipe for baked Pi. Don't even consider that!