What to do to fix my iphone 5 if its not responding to touch?

I have an iphone 5, it's pretty new less then a year old.yesterday i tried unlocking it but it wouldnt respond to touch so i tried turning it on and off. When i did it just went from the apple logo to black to black and gray stripes. I decided to leave it alone for a while and it worked normally.
yesterday night i put an alarm clock but i didn't wake up, i'm not sure if it was because i just didn't hear it or if the phone stopped working. I tried unlocking it but it still didn't respond but i did get whatsapp messages. I tried doing what i did yesterday and the same thing happened with it being just apple logo, stripes and black for a while. It just turned back on and its not responding to touch again. I know for sure that it didn't touch water or fall or anything, at least not on my watch and it still charges.

I suggest you put it on the charger for a long time to take adequate and check the left button maybe you it's silent? Hope it works

If you are on contract tell your provider if not take it to store where you bought it and explain what has been happening and they will fix it

  • My iPhone says its up to date but its not? I have the iPhone 4s and every time I go into settings-general-software update, it says my software is up to date with iOS 6.1.3! All my friends have gotten iOS 7 already! Why doesn't mine say I need to update to iOS 7! And how can I make it say that? And I know that the iPhone 4s can get it.
  • My Iphone 6 keeps freezing and not responding to touch screen? I've already looked on the Apple website and followed all of their instructions but nothing worked. My Iphone still doesn't respond to touch screen. I think it might have a virus what should I do?
  • Is it possible to fix an iphone 4s with a none responding screen? I replaced the screen on my iphone 4s and my screen won't respond… The touch sencer is probebly broken so i bought a new screen and i'm wondering if the new screen would fix the problem
  • IPhone touch screen not responding? Recently I dropped my phone in the toilet and it has been in a bag of rice in 1 month now (since people told me it would help) Now my phone works though I have this problem that sometimes the touch screen is not responding. I can be on my phone and do stuff but suddenly it will just freeze and not let me do anything till I close the phone and open it again. It's really annoying. I have even tried to restore it, but it's not helping. Is there anything I can do to make it better?