Where did you buy the iphone 4?
Was it ever locked to a different phone carrier?
Usually, when you see the message insert sim card - it means that your phone was previously locked to a different phone carrier and was hacked to unlock. So when you upgraded it locked back up to the original carrier.
Only the phone carrier that the phone is locked to can do the unlocking.