I often hear from people who have trouble connecting to the iTunes Store, either on a computer or an iOS device. Apple has published a detailed document describing how to troubleshoot this problem. It’s quite a long document, but if you can’t connect to the iTunes Store, I’d check it out. Note that some of the procedures you may need to perform are quite complex.