Go to Settings > Messages and turn off iMessage and then MMS Messaging and wait a few seconds and turn them back on. Update your device to the latest version of iOS. You can do that wirelessly by going to Settings > General > Software Update.