how do I get photos off if screen is broken & phone is locked?

So I broke my screen months ago & couldnt afford to fix it. I want to get all the photos off but the phone has a lock on it and the screen is so messed up it wont let me do anything. Is there any way I can get in?