Don't worry. Even if the hard disk does not respond to you at all, unless corruption has occurred within the files, your files can be saved most of the time. If your files have backed up to a cloud service or that your photos are backed up to an external hard drive, it would be much easier to restore the files.
To recover files from the dead hard disk on your own, you'll need a bootable USB to start the computer with the bad hard drive. It will boot into the operating system on your bootable USB instead of your computer's operating system. Plug in another USB then, so you have someplace to save the files. Usually, the bootable USB will have file explorer like Windows Explorer. Open that and see if you can access your damaged hard disk with it. If you can find your files, you should now move them to your other USB or external hard disk.
Please note that if you are dealing with data that you absolutely cannot afford to lose, it would be best to seek professional help at professional data recovery services, where they have very expensive equipment and testing and dust-free environments, not the stop with a few broken computers with the USB you can create on your own. So the expense can be high.