Encoders not working!!!

I have been working on using 48cpr encoders with 2 dc motors in order to read the angular position of said motors. When testing, one encoder (positioned on interrupt pins 2 and 3) worked while the other (positioned on 7 and 8) failed. I tried changing pins so one would be on 3&4 and the other on 2&8 (allowing one interrupt pin per encoder. Neither encoder pin worked. Also, I used the encoder.h library linked on arduino’s encoder page (see below). I also attached my code. Any help would be greatly appreciated. Thanks!!!

https://www.pjrc.com/teensy/td_libs_Encoder.html

WASDControl.ino (4.76 KB)