Bad solenoid connections

bad solenoid connections

I have found this terminal block used as solenoid connections today. It has been working for a while but stopped working now. Who knows why?