I assume you used analogWrite(9,xxx) where xxx is a value in the 0 -255 range ?
this should fade the LED, 0 = no (or very little) light, 255= full brigthness. BUT if you use a LED on any other pin than 13 you MUST use a current limiting resistor or the LED will burn out, either on the spot, or after a little while.