It could be a variety of things that is causing the issue but if the motor works but there is no sound, my guess would be either a faulty speaker or possibly the whole circuit board is dead. I would also check the “safety switch” which from your picture I believe is the small square black (with yellow wires) piece. This is the switch that needs to be depressed in order for the train to move. I have seen this go bad as well.