Question: how to transfer contacts from icloud to my iphone?
Answer: Go to the icloud.com and sign in with your Apple ID.
Click Contacts. Here, you'll see the contacts synced with your iCloud account. You'll be able to transfer them to your new iPhone.
Follow the steps above to transfer contacts to a new iPhone with the iCloud backup.