Unresponsive touch screen iPhone 4s?

My old phone is an iPhone 4s, it still turns on and the home and lock button work plus the screen lights up but the touch part is not working to type in the passcode to unlock it. I would love to get some old photos off of it. If anyone can help please do

It could be that the Digitizer doesn't work any more.
It can be fixed, but you'd need to replace the LCD/Digitizer assembly.

However, if you just plug in the phone to your computer, open up "Computer" and look for your iPhone, open it, and you'll see something like "Internal Storage", open that and you'll see "DCIM". Open that folder and you will see all of your pictures and videos on it.