You can lock your SIM card, so it can’t be used without a Personal Identification Number (PIN). You must enter the PIN each time you turn iPhone off and turn it back on again. Some carriers require a SIM PIN in order to use iPhone.
IMPORTANT: If you enter the PIN incorrectly three times, you may need to enter a Personal Unlocking Key (PUK) to enable your SIM card again. Refer to the SIM card documentation or contact your carrier. Some cellular networks may not accept an emergency call from iPhone if the SIM is locked.
Choose Phone > SIM PIN, then turn SIM PIN on or off.
Enter your PIN to confirm. Use the PIN assigned by your carrier, or your carrier’s default PIN.
Choose Phone > SIM PIN.
Turn SIM PIN on, then tap Change PIN.
Enter your current PIN, then enter your new PIN.
Enter your new PIN again to confirm, then tap Done.