Have you tried putting 5V on the dir pin to see if it reverses I also have a faulty driver doing the same it could also be the opto blown if it has one