You probably didn’t reinstall the operating system if you still see the flashing Mac folder with a question mark after replacing the hard drive. Follow the steps above to reinstall macOS onto the hard drive. Another potential cause is that the correct hard drive is not selected. This can also be fixed in Recovery Mode.