Guess they don't have automatic air brakes in India.
Or maybe someone forgot to "put the air in the train"?
"Automatic air brake" -- there's a "brake pipe" which is a continuous connection between the locomotive and the rear of the train. This is normally kept "charged" with air pressure (110lbs. p.s.i. in the US for passenger trains).
The brakes are applied by REDUCING the pressure in the brake pipe.
If the brake pipe is broken, the brakes should come on in emergency.
At least, that's the way it is here in the US, Canada, and Mexico.
I can't understand why -- if the coaches were uncoupled from the engine -- the brakes didn't apply.
Even if the cars are rolling free with no air at all, each coach should still have a manually-applied hand brake. Did no one think of trying them?