On an iPhone: Press the Home button twice, this will show all running/open apps. If you want to close an app you can slide it upwards. Press the Home button again to exit out of this menu.
Android will vary based on OS but in general…Go to Settings>More>Application Manager (or Apps)>Running. Click on the App you want to close and select Stop.