DC Motor with Encoder (keeps giving 0s en 1s)

Try monitoring the encoder's 'A' and 'B' output phases with a DMM as you turn the motor by hand. Do they operate in the expected sequence?