Typical data recovery usually done with software. This is the best solution for most cases, like when someone has accidentally deleted files or software has become corrupt.
Sometimes a drive failure is not just software related. The storage device will need to be repaired at a hardware level and parts will need to be fixed / replaced.
When a storage device has been badly damaged or the data is extremely valuable, the drive is sent to a clean room where special equipment is used to recover data.