Hard drive showing I/O error after upgrade CPU and mother board

I upgraded my PC with new CPU and mother board, installing a old 6TB WD black hard drive
Then the drive showing as uninistialized in windows10, and if I try to inistialize it, windows 10 is giving I/O error
I have tried reconnect and made sure connection are clean and secure

How can I recovery my data?

If my HDD still in warrenty, do I need to get a replacement.
As I cant event format it right now