You can reformat the HDD but that will wipe the info.
You can buy a new HDD, install windows oni t to get PC running, then you can buy an external HDD enclosure and insert the HDD into it and connect it via usb and hope the PC can read the drive to extract the info.
I actually have an HDD that has stopped working, sadly making it an external did not help, the HDD seems to sound healthy enough, but the PC does not notice anything plugged in. In an optimisitc last ditch effort I have bought an identical model HDD and will swap its controller board with the old one in the hopes of it working which is also an option