I remember an old podcast/audiobook thingy that was about this exact thing. The escalators went out at the mall and everyone was trapped on the 2nd floor. Sort of a parody of post apocalyptic survivor shows
The brakes can fail, any weight on the escalator then slams to the bottom. I'm talking about a failure, not simply turning the escalator off. Never attempt to walk down an escalator that's experienced a mechanical failure. It's dangerous.
https://youtu.be/VWLb7P8MCck (edit: wrong video initially, this is more what I'm talking about though I can't seem to find the specific video i'm thinking of of an escalator violently accelerating.)
I've also heard (though I'm not sure how true it is) that the motor going out can make the escalator belt go slack allowing the steps to flop to the sides.