Motor not moving on PWM from PID

Does the PID loop not work then?

Yes the motor is running but the encoder is malfunctioning. I've posted the problem here. Speed of reading 500 cpr Rotary Encoder less - gives inaccurate results - Sensors - Arduino Forum