A couple of suggestions that wouldn't hurt:
Make sure the gears turn the encoder wheel (disc with holes in it) as it should,
Test the optic board (PCB the encoder wheel runs perpendicular to) has 5v going to it - use a multimeter if you have access to one.
If both of those check out then I guess your optics or optic PCB is bad...