You could try an HDD docking station to recover the data
The first thing to do is make sure you have the tools required to connect this drive to another computer safely. Ideally, some kind of SATA/IDE to USB cable or USB drive enclosure or sled that you can mount the drive into and connect it to your computer easily.
Next, take a look at the drive itself. Is it damaged in any way? Are the pins bent or broken? Make sure that the drive is in good enough condition to actually use before you try anything in the first place that may damage it even further. If the drive is too physically damaged to attempt recovery, you need professional assistance. If everything looks good and you have the equipment required to connect the drive to your system, you can try to recover the data.
It is important to know if the pins are in good condition, if they aren't a docking station won't help because then the drive can't connect