A. Restart your iPhone to clear temporary files that may be causing the error. Hold the power button and slide to power off, then turn it back on.
B. Check for any pending iOS updates by going to Settings > General > Software Update and install any available updates.