It usually happens when I am using the Youtube application and the Safari application, but it can happen anytime. Whenever I am using my phone and it lags or slows down for a moment, it stops working for a few seconds and then sends me back to my homepage. At first I thought it was because I had too much memory on my phone, so I got rid of most of it. It still keeps quitting. I noticed it will most likely happen when I try to watch a youtube video or reload an internet page. If I try to make my iPhone do more than one thing at a time (such as turning down the volume and pausing the video), it will send me back to the homepage.
tl;dr: My iphone randomly quits out of applications if I go too fast or do too many things at once.
Please help, it is really annoying. I've tried shutting off my phone and resetting everything, is there anything else I can do?

Please help, it is really annoying. I've tried shutting off my phone and resetting everything, is there anything else I can do?