When you replaced the hard drive, did you install Windows on it? Or another operating system? This error can also appear when the computer doesn't detect an operating system.
See if you can boot from another for a of media, USB stick or CD if your machine still has a disk drive. You can user [link|https://support.microsoft.com/en-us/windows/create-installation-media-for-windows-99a58364-8c02-206f-aa6f-40c3b507420d|Microsoft's guide|new_window=true] to make a bootable USB or disc from another working computer.