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.
Many times it happens that there is no network in the SIM. There is no WiFi or data either and if you have to call someone, it becomes a problem. In such a situation, you do not understand how to call ...