As title I'm having a few issues

I'm about to smash the thing
The car was running fine no probs what so ever then I noticed it was getting a little warm not in the red but close I thought fan switch had packed up so ordered a new fan switch and thermostat fitted it no change still getting hot ffs
I check the connections all good fuse is fine still nothing
Now this could be nothing but I was running out of ideas so I looked at the ecu well I mean I un clipped it from its place and the fans come on

i thought great went and got a cuppa the fans were cutting in and out result not sure what done it but hey
I put the ecu back and the fans cut out now they won't come on ?
Any ideas