First thing, install recovery (cwm is the name of a recovery)
This allows you to turn the phone on into a kind of dos mode in which you can change the software before it boots properly, from here install the rom (which you needed to have saved onto the phone before or you can "mount the phone...