If the old phone works in any way at all, you could add a micro SdCard and transfer the files onto that, then remove it and put it in the new phone.
Once you've moved the photos out, go for a Factory Reset before disposing of the phone. There are folks who look out for them in the rubbish bins.