It sounds like this could be a problem with the wiring rather than the code. Double check that all the pins and the ground to the leds you are testing are wired ok. Try temporarily swapping the wires going to analog pins 0-5 with the ones going to pins 8-13. If the analog pins start working then it was a wiring problem.
I hope that helps get you going, good luck !