I have now a iPhone and my previous phone a galaxy j3 how do I get my photos and phone contacts back when it got rip pff

If you don't have the original phone, and they aren't in your google account, then there is no way to get them back.

If they are, however, in the google account, you would need to log into that account and download them to the new device.