How do i access my phone files on my PC without unlocking my phone?

I have a Nexus 5 with a load of photos and videos on it that i want to put on my PC. Before when i have connected my phone i have had to unlock it to view any files. But i recently DAMAGED MY SCREEN SO IT DOESNT WORK.
Any help?