u/Erza-Svarlet96, try that SIM card on another device. If the SIM is recognized in another device, then the issue is with the phone and not with the SIM Card.
Either way, once you've sorted out where the route cause is, you can then, either have the phone repaired at a certified apple repair center or get a replacement SIM card.