You should have an option on your phone. Usually the phone has a pop-up notification asking if you'd like to "charge this device", "transfer files" etc. If you don't see the pop-up notification, you ought be able to find it in settings and enable it so everytime you connect you'd be asked!