SMS goes thru the 1x (or better) DATA channel, unless your carrier specifically supports WiFi service.
If your phone is not registered to a carrier, it won't send SMS.
ie, my phone normally has both WiFi and Data turned off to conserve battery power...
but SMS messages work just fine. It is part of the basic 1x service for a cellphone, and that does not require 3g/4g service.