When you send an iMessage, Apple will route that message through their servers using an Internet connection. This Internet connection can be either Wi-Fi or your cellular provider's data network. If no Internet connection is available, the Messages app may attempt to deliver the iMessage as a regular SMS text message.