Just look at a practical scenario – that of one man moving a large plane on a flat runway. Simple, when one thinks about it.
There is no weight on any flat track in the direction of the applied force of the engine. Gravity works perpendicular, so towards the centre of mass of the Earth. It is only the friction between the track and wheels that provide anything more than the inertia of the load to get it rolling and to accelerate.
The load will accelerate according to Newton’s Second Law of Motion, once the static and rolling resistances are overcome.
As Duncan says, a snatch force will be greater that the simple tractive effort fom the loco. Laws of momentum come into play on this scenario.
Look up f = m*a and m1*v1 + m2*v2 = m3*v3 in respect of the two laws.
Remember the track with one end elevated to provide constant velocity, when doing experiments to demonstrate Newton’s Second Law at school? Or perhaps recall experiments with a linear air track? I do.