As Andy says You have 1×3 pole contactor supplying power via disconnected Grey, Green, Yellow wires to 2x3p overload units.
From this it seems there are 2 motors being fed from the overload units, perhaps the Br,Bk,Blu,g/y are the 3 phase power supply ? but using incorrect colour cores.
Or they may be a motor feed so need to be connected to the overload that matches the overload setting range from the motor FLC stated on the motor plate.
There are 3 black wires with white markers shown at the top right of the picture, do they go to a motor ? (suds pump ?) perhaps connect to the closest o/load unit.
Where do the 3 red wires shown at the bottom of picture go to and come from ? (spindle motor ?)
There is evidence of a flashover to earth from term 4 on the lower o/load so that unit may need replacing.
If you can identify where cables come from and number of motors and state if 3 phase more help may be forthcoming.
Emgee