To unlock your iPhone from its carrier, you'll likely need to contact your carrier directly to cancel your contract.
You can manually update the carrier settings on an iPhone through its Settings app to ensure your phone works properly.