so at least you have proven the wiring is correct and the setup in Mach3 is also correct

just need the resistors and fit a new pair of optical sensors and you should be good to go

Paul