If you did a factory reset, and now it's working, but you can't complete a download, that's usually bc of Google Play Services. It should automatically update after a bit of time, but if it doesn't then you can search for it in the Play Store and see if there is an update for it.
Hope that helps.