You need to identify and reconnect the loose wire. Maybe it's the earth / negative connection ??? The colour of the wire should identify it ( the earth wire is black)Worked last year, upon feeling about I find this plug thing loose.
May not be related, may have always been loose.
Anything to check?