It can be a hardware issue.
Please check if the hard drive is recognized in the BIOS Menu.
Restart the system and press F2 or Delete to open BIOS menu.
NOTE: You may have to press a different key depending on the manufacturer.
For Dell Systems, perform Hardware Diagnostics using the link mentioned below:
Thanks & Regards