You should be able to obtain the unlock code from your carrier (or a phone unlocking service). Your carrier will give you the code for free, as long as your account meets certain criteria. Unlocking services usually charge a fee, and require the phone's IMEI number.