Newer versions of Android prevent file transfer by default. It's a security measure - you have to explicitly allow file transfers to prevent unauthorized file transfers (eg. when you connect your phone to an untrusted USB host or rogue charger).
Unlock the phone and look for a USB connection notification. Tap it and select File transfer.