Qaudrature Encoders+ DC Motors + ISR .. Issue

I am very stuck on this and would appreciate any advice

advice 1: post your code so we can see what you are talking about.

advice 2: there are many posts about encoders on this forum, with (eventually) working solutions. Have you searched for them?