A clockwork is the inner workings of either a mechanical clock or a device that operates in a similar fashion. Specifically, the term refers to a mechanical device utilizing a complex series of gears.
A clockwork motor is a mechanically powered clockwork device powered by a mainspring. Clockwork motors are generally manually energised using a key (wound up) via a ratchet device.