Why is my iphone screen not working?

When I touch it, it doesn't respond and goes haywire! I don't know what is going on I have to lock my phone and unlock it just to get a few touches in! And when it does sense my touch it sometimes goes to the wrong thing like on sc I wanted to open one but it opened the other! I have done everything reset it, turned it off, taken the SIM card out everything! Is it a virus? Will I have to get a new phone?

. Why is my iphone screen not working