The iPhone is pretty simple and stable, but it’s depends on software and may crash any time. You may stuck with your iPhone when it not responding to swipes or the home button not responding situations. There is no physical keyboard to try and further reset.
Even though the iPhone is based on soft keyboards, still you can try these troubleshooting steps that come in handy with another external buttons of your iPhone:
Force quit a program in iPhone.
Press and hold the Home button for six seconds to force-quit a program that seems to be stuck.
Hard Reset iPhone.
If the entire iPhone locks up—it can happen, press and hold both the Home button and the Sleep/Wake switch for eight seconds.
You’ll see the screen go black, and then the Apple logo appears as the iPhone reboots.
If you really like your iPhone, please see here for more tips about your iPhone. See the 25 Life saving tips for using iPhone.