New iPhone Randomly Says no SIM

I am not sure whether this is the appropriate place to post this, but I recently purchased a new 6s. When I woke up the next morning, it indicated that there was no SIM card. I was a little alarmed because I assumed it was blocked, but after removing the tray and replacing it, the signal worked once more. For the past week, this problem has persisted intermittently and seemingly at random. Do you know what is happening?