If there is data on the drive that you need to recover, there are various utilities. Recuva and EASEUS Partition Recovery can do the job if only the partition information was destroyed. You may need to go more in-depth if there is more corruption.
You might want to figure out what caused this to happen so that you can replace the offending component. And, if you don't have them now, do backups to an external drive so that an unrecoverable failure will not be a catastrophe.
Good luck.