How to transfer contacts from an iPhone with a broken screen?

I got a new phone because my old phones screen isn't working. I tried backing it up. But i'm unsure of how to sync my contacts. I got a new sim card. I'm so confused as to how id do this.

Here is a video about transferring contacts from iPhone 5S to Samsung Galaxy Note 5, also works with other Samsung Galaxy and iPhone