How to recover data when screen is broken?

Recently I lent out my S5 to my sister as she needed a phone whilst her new one arrives. She was able to drop it and destroy the display but not the screen. So if you look carefully there is a crack in the display itself. I have quite a lot of photos and music left on my S5 and I have no idea how to access them. My phone was protected by a passcode so I can't just plug it into my computer and transfer the data.