Test the port with another device (scanner, camera, USB memory stick) if it works the port isn't at fault.
Test the USB cable with another device, if that works as well then the printer is at fault. Take it back where you bought it and demand an exchange.
One point I must mention here, I had a hell of a job getting my X1180 working (software installed fine), and I found out it was a faulty black cartridge. A bit dodgy that, bundling faulty cartridges in with the printers. You try explaining in PC World that a cartridge is faulty and you want a new one!!