Hi Attiq 123,
Thanks for the question. It sounds like you are experiencing issues with your network connection, specifically when connecting to Apple services like iCloud and the iTunes Store. The following resource provides some troubleshooting steps that you can try:
Can't connect to the iTunes Store - Apple Support
http://support.apple.com/en-us/HT201400
You may also need to test to see if the specific ports on your Wi-Fi network are accessible:
iTunes: Advanced iTunes Store troubleshooting - Apple Support
http://support.apple.com/en-us/TS3297
Make sure the issue is with the iTunes Store only. (You need an Internet connection to access the iTunes Store).
Open a secure website to test if you are online as is necessary for the iTunes Store. This also tests if the main ports 80 and 443 are accessible. If the website works but the iTunes Store does not, it is most likely a firewall blocking the iTunes software or servers. If this is the case, follow the steps in the "Blocked by software firewall" section below.
- Matt M.