How does an Escalator work?

How does an Escalator work?