Nothing is wrong with your 3DS or copy of Pokemon X. In order to go on to the internet, You'll need to download the latest Patch (ver 1.5) corresponding to the version of the game you have from the Nintendo Eshop. The patch/update is Free of Charge.
Source: Knowledge and Experience
Hope this helps :)