You may have to re-install Windows 10. I know you made no mention of the OS, but it does sound like a 'classic' Win10 problem.
Open Settings>Update and security>Recovery and consider the options. They are listed in ascending order of 'severity'. Hopefully, you only need to reset Windows.
Cheers,
GreyCatz.