Can my files be recovered from my HDD?

I just got my HDD back. At first it was ok but after a few minutes of using it, it said that usb not recognized. When I open the device manager it says that set address failed and device descriptor failed. I don’t know if it’s the hdd or the usb cable (slightly loose). Any luck fixing it?