IPhone won't send iMessages just text messages?

My phone got cut off and now it's back on it will only send text messages, even to iPhones, how do I change it back?

Call Apple Care for technical support

Go to Settings -> Messages. IMessage may have been turned off.

Make sure Data and iMessage is turned on in Settings.