Can not recognise this piece of equipment. It is attached to the mains
The black box with white text in a circle is a week timer.

Not how there are Roman numerals: I - II - III - IV - V - VI - VII

which is 1 - 2 - 3 - 4 - 5 - 6 - 7 for the days of the week.

There are "6", "18" and "24" to indicate the hours of a day.

The green jumpers are the "ON" jumpers.

The red jumpers are the "OFF" jumpers.

These clocks are powered by a synchronous motor which rotates very accurately because it uses the mains frequency (50 Hz or 60 Hz) to rotate at the correct speed.

These motors have quite thin wires inside and sometimes these just break.

As this is all mains powered you should call an electrician to replace the clock.