My iPhone is saying that I cannot connect to the iTunes or App Store, can anybody help?

I have tried lots of things and it is still not working. I got this phone 6 hours ago brand new from the Apple Store.
It would help if you could tell us the lots of things that you tried.
I have tried setting the date and time to automatic, resetting my phone, restarting my phone and I tried changing some setting that I can't really explain.

Original thread: https://forums.imore.com/threads/my-iphone-is-saying-that-i-cannot-connect-to-the-itunes-or-app-store-can-anybody-help.309100/