Why does my iPhone 5 stop sending messages?

It worked for a few days and then last night it stopped sending and receiving texts. But I could still make calls. Then this morning it started working again. But now it is doing it again and it won't send texts. The iMessages won't go through either. I'm horrible with technology so I really don't know what to do. I tried turning it off but it didn't work. And If I do a network or hard reset, then will I lose everything on it?

Added (1). It is a Sprint iPhone if it matters.

Sometimes the apple messaging service or iMessage is down and won't go through. I had this happen several times on my 4s, hasn't happened yet on the iPhone 5 though. It was a pretty big pain, but maybe if you are at home and having an issue while trying to use Wi-Fi, toggle off Wi-Fi and try sending the message through 3g or 4g. That also happened to me as well, my router can only use 10 devices at once, and I have about 20 linked over Wi-Fi. After it fills up it starts not accepting devices and it may say you are using Wi-Fi on your phone but you actually can't get internet at all to work. I would suggest trying to turn off Wi-Fi on your phone and see if it sends through the cellular network, if so you might want to reset your router or make sure your firewall isn't blocking the device.

  • Why isn't my new iphone 4s sending messages? I have had my iphone for about 2 and a half weeks and ever since i bought it it hasn't sent messages right… I have tried to reset it and i looked at imessage and made sure everything was right on that and it still won't send messages half the time… Plus i can't get incoming calls sometimes i will have to call the person thats trying to call me… Should i take it back to c spire or what?
  • Why isn't my Iphone sending picture messages? When i try and send picture messages my iphone says message send failure? Also, 3g isn't working.
  • Why is my iPhone5 sending some messages as iMessage and others as Text Messages? I understand that messages are sent as Text Messages when there's no signal or poor Wi-Fi connection. However, I'm successfully texting some people using iMessage but others (still iPhone users) as Text messages. The other person will send iMessages and then my responses will be sent as green Text Messages.
  • Why is my iPhone sending picture messages as texts? I have had an iPhone through Verizon since last June, and recently it has started sending all of my picture messages as texts instead of iMessages. I have a texting plan, but it's still frustrating that I can iMessage my friends any other time, but when I send a picture it becomes a text. I have checked all of my settings, and nothing has been changed. Does anyone know what could be causing this?