To leave an application, you click the home button which is at the bottom of the phone.
All applications written for iOS must provided a way to change screens if they do more than one. This is usually accomplished by a back arrow on the top left of the screen.
To see a list of applications you have recently interacted with, you can double click the home button.