To unlock your iPhone from its carrier, you'll likely need to contact your carrier directly to cancel your contract.
You can check to see if your iPhone is unlocked from a carrier using any of a few different methods.