The thermostat monitors the water temperature and switches off the heating when the desired temperature (100°C) is reached.
The damaged part must be replaced, without this the device will not work properly. Replacement requires professional help (electrical part).
Thermostat is made of bakelite and brass.
Recycle as a SER (waste electrical and electronic equipment) to the closest SER collection place to preserve the nature.