I found that in my case it was caused by the modem being in 4G. I had to switch to “2G only“ mode to make SMS work.