To restore the default settings on the iPhone, delete any third-party apps by tapping an app icon for a few seconds to wiggle icons, then touching and holding until an x (to delete) appears in top left corner. Tap that x and confirm deletion. This will free up storage space. Search the App Store again to purchase the app Only tap/do what is needed