Go to settings/iCloud on your phone.
Make sure you are logged with your apple id.
Contacts should be on, click on it to turn it off and choose keep (even though you show no contacts)
When the process is done go ahead and turn on contacts again, choose MERGE.
All your contacts should show up if you had a previous backup to iCloud.