Purchase/Get a Carrier unlock from the original carrier of the device. You must be the original owner and meet specific requirements depending on carrier
Purchase an IMEI unlock online or elsewhere. We recommend only ApplenBerry for unlocks. All other sources are at your own risk.
Jailbreak the iPhone, install UltraSn0w and use it on 3.