Try going into settings, then general, about, then diagnostics and usage. go into diagnostics logs, and read to see if anything is happening in there.
When the 4S first came out, it was resetting itself all the time, and i ended up seeing a bunch of kernel panic logs in the diagnostics. Had to get it replaced.