hobby motor: only + and - [SOLVED]

in the arduino cookbook and fritzing, the basic example of a servo motor seems to have a third cable which receives the PWM signal from arduino. the motor that i have only has positive and minus leads. i was able to get power to it and make it spin, but not sure how to control it?

it looks like this but it's plastic:

the yellow cable?

That's not a servo, it's just a "motor".... to control the direction you need to use an h-bridge and for speed, pwm. Have a look here.

ok thank you.