iMessage/SIM Card Problem

I'm having a problem with receiving iMessages on my 6s. I sometimes get them and sometimes don't. I've tried everything--turning iMessage/FaceTime off and on again, resetting my network settings and phone, even erasing all content and settings--nothing has worked.
I'm beginning to wonder whether this problem is linked to another ongoing issue with my iPhone. I have frequently been getting the "No SIM Card Installed" notification. I tried taking my SIM card out and putting it back in yesterday, but that hasn't fixed the iMessage problem. Should I get a new SIM card, or is the iMessage issue related to something else?
Yes, the problem could lie with your service provider. I recommend you have them switch out the SIM card, especially if you're not receiving the "iMessages" while using cellular data.

Original thread: https://forums.imore.com/threads/imessage-sim-card-problem.368140/