If your iPhone is not sending messages, first make sure your phone has service, as the issue may be with the Wi-Fi or cellular network, not your device itself. Check in your iPhone's Settings app that various messaging options are turned on so that your phone can dispatch texts if iMessage fails.