To unlock your iPhone from its carrier, you'll likely need to contact your carrier directly to cancel your contract.
If you need to find out your iPhone's carrier without a SIM card installed, you can do so through the Settings app.
What does it mean if your iPhone is locked? If your iPhone is carrier-locked, it's only going to work with the cellular provider that locked it. However, if your iPhone isn't locked, you'll be able to ...