servo code interfering with second potentiometer

Read the documentation for the Servo library carefully. The servo library takes over use of a hardware timer which the Arduino runtime uses to provide PWM output on certain pins. As a result, using the Servo library disables PWM output on the affected pins - even if you have not attached a servo to those pins. Unfortunately the affected pins are ones that some motor driver shields use for PWM speed control.