Reinstalling Mac OS X on Macbook with swapped hard drive?
This question has been answered here. 

Basically do the following:

To start Recovery, hold down the Command + R keys while booting. The interface is pretty straightforward after that and you should be able to figure it out.