I'm probably teaching my grandmother to blow eggs, but...
In a series wound direct current electric motor, assuming the commutator and the armature windings are sufficiently strong to resist the centripetal forces generated by the rotational speed of the rotor, the maximum rotational speed is that achieved when the 'back electromotive force' exactly equals and opposes the applied voltage. At this point the current through the armature will drop to zero. The 'back emf' is generated by the armature windings by virtue of their movement in the stator's magnetic field.
The back emf can be reduced by weakening the stator's magnetic field by reducing the current through the windings, this is the field weakening used in many dc traction designs enabling to armature to rotate more quickly.
The above is true when the motor is tested against a brake.
In daily traffic the top speed achievable by a train powered by an old school straight dc unit is set by variations in the supply voltage from the third rail or overhead, the diameter of the driving wheels, the direction and strength of the wind, whether the train is ascending or descending a hill and whether any overspeed device is installed which reduces or cuts the power supply or applies the brakes. These factors explain the differences noted in the stock's performance from time to time.
Three phase alternating current motors, as used almost universally today, generate torque when the rotor 'slips' slightly behind the rotating magnetic field created by the stator coils from the three phases suppled by the power electronics. If the rotor and the fields rotate at the same speed the torque drops to zero. This means that the maximum rotational speed is defined by the power electronics and is no longer directly affected by the level of the supply voltage to the train. If a train's top speed is, say, 100mph then the maximum frequency the electronics will supply is that commensurate with that speed, similarly for a 140mph top speed. The caveats concerning wheel diameter, inclines and wind still hold!