Step 1) Wire up your servo like this.
1) The brown/black wire goes to GND
2) The red wire goes to 5V
3) The last wire goes to pin 9
(Note, the last wire could be several different colors)
You can actually plug your servo's orange cord to any pin, just make sure to type that pin number in myservo.attach(#) where # is what you plugged in. Notice the example picture is plugged into 9?