my computer is not recoginizing my phone but charging it
Depending on your computer os and your phone. After connection via usb, theres normally a popup in the notification bar where you are able to choose from various usb modes. If that won't work, it could be a driver issue. Samsung devices tend to have Samsung Kies installed, which ships the usb driver.