Unfortunately, you can only do this three times before your iPhone stops using its SIM card. After that, you must enter the PUK, a secret key required to unlock your device. You can get the unlock key from your mobile carrier or the box your SIM card is in.