Mad iPhone Disease……..

My iphone started acting a bit crazy last night ,the iphone behaves erratically it loads the app on the 2nd column from the dock . So if that is settings its scrolls trough the app till it can anymore, not only that but when any app is open it does the same thing ,a bit crazy I didn’t drop the phone and the last thing I remember I was installing lock info and messing with the settings on it as well as quickdo . I have a 3g 3.1.2 I have restored the phone 3 time and nothing .
Oh one more thing when im on the messages app it starts clicking the keyboard by it self…lol I hit the backspace and the “c” types crazy !!!
any help will b greatly appreciated
tnx