I can't connect my iPhone 5 to my computer

I bought an iPhone 5 and it charges when plugged to the wall but when I plug it in my computer it doesn't connect to the computer but makes the connected sound.

When you connect it to the computer open itunes. Otherwise try a different usb port as something may be bad on your computer.