Hello Anas1996Anas,
It sounds like your iPhone is locked to another carrier and you need to know what to do next. The guidance below offers the best steps to take:
"Apple can't unlock your iPhone for use with a different carrier. Only your current carrier can unlock your iPhone.
Contact your carrier
- Only your carrier can unlock your iPhone. Contact them and request an unlock. After you submit the request, it might take a few days to complete. Contact your carrier to check the status of your request.
- After your carrier confirms that they unlocked your iPhone, follow the steps below.
If you need to activate an eSIM from a carrier other than your current carrier
Learn how to set up an eSIM on your iPhone
If you have a SIM card from a carrier other than your current carrier
Use these steps to finish unlocking your iPhone:
- Remove your SIM card.
- Insert the new SIM card. Your device will activate.
If you don't have another SIM card to use
Use these steps to finish unlocking your iPhone:
- Back up your iPhone.
- After you make a backup, erase your iPhone.
- Restore your iPhone from the backup you just made.
Get help
You might see this message on your computer or iPhone: "The SIM card inserted in this iPhone does not appear to be supported. Only compatible SIM cards from a supported carrier may be used to activate iPhone. Please insert the SIM card that came with your iPhone or visit a supported carrier store."
If you see this message on your device with iOS 14 and later, use these steps:
- Go to Settings > General and tap About.
- Under Carrier Lock, you should see a message that says, "No SIM restrictions." If you don't see that message, contact your carrier.
If your device is on iOS 13 or earlier, use these steps:
- Contact your carrier to confirm that they applied the unlock in their system.
- Restore your iPhone to factory settings.
- Restore your iPhone from a backup.
"
How to unlock your iPhone for use with a different carrier - Apple Support
Cheers.