How to unlock a Samung Galaxy S5 locked with a pattern on a broken screen
Let's assume your new Device is also Android (you have not given the make and Operating system of your phone),The most probable solution for you is Samsung Smart Switch  regarding the transfer of contents from the older devices(any os like Mac or Android) to a new Android device.

Check this sitefor more info.