I have a few N Scale DD40AX Locos that did the same thing, it's taken me some time to get to dealing with it, with mine the rear motor seams to have poor connection which stops the front motor because the decoder goes into a protection mode because it senses that the rear motor has shorted out so the lights work but that's it. I was able to spin the motor and it came back to life.
Hope this helps
Hope this helps