My iPhone screen won't respond Its been like this since the morning?

It did this yesterday for about an hour but then it went back tomorrow but it won't go back tomorrow Also I don't know how to re start it because my lock button doesn't work and also if I do some how restart it I have it flashed will the flash delete?

Press and hold the home button an the on off button at the same time for 5 or 6 seconds, and it should restart.