If you have a compatible watch and Mac, you can use your Apple Watch to unlock your Mac computer. Here's how to do it using the "Auto Unlock" feature.
To unlock your iPhone from its carrier, you'll likely need to contact your carrier directly to cancel your contract.