Presumably this is an American Flyer locomotive. The first thing to do is check the wiring. If you are powering up the motor directly, first disconnect the harness to the tender. Power to the motor from one transformer lead goes to one brush connection. The other brush connection gets connected via a jumper wire to one field winding. The other field winding goes to ground, where the other transformer wire is also connected.
Power up the transformer, and if everything is installed and wired properly, the motor should run. If it does, reverse the wires to the brushes and the motor should run in the opposite direction.
If the motor does not run, without power, try and turn the armature by hand. It should turn and slowly turn the wheels. Also recheck all the connections.
Larry