You should reinstall the os on the new drive after you've completed the hardware repair of the old hard drive. After that, learn how to install Windows after repairing the hard drive. As an example, consider Windows 10: Boot from the installation DVD for Windows 10.