Putting in a new hard disk from another computer will not do the job. Whatever new disk is installed must be initialized first. Then a fresh install of Win 7 (or any other OS) can be done.
More info here: http://support.microsoft.com/kb/309000
This applies to Win XP, but the concepts are the same for other OS like Win 7.