problem when using pull-up resistors and Servo library

Hello,
I am using servo library to control the motor speed and at the same time using the interrupt to get the speed feedback. The interrupt I use for encoder is 2 and 3, also I set the pin pull-up resistor. If I do so, the motor will rotate back and forth, without control. If I do not use the pull-up resistor, the motor can be controlled. But I can't get the feedback speed. Does anyone know why is that? Thanks!

There's a problem with your code or your wiring.

Since you haven't posted either, we can't venture a guess on the specifics.

I am using servo library to control the motor speed and at the same time using the interrupt to get the speed feedback.

Can you provide more detail on just how this setup works, or is supposed to work?