Unless you had backed up the contacts on the sim card to internal storage of the phone, or to the cloud via your mobile carrier's application (T-Mobile used to offer this feature, but no longer does due to security of the data concerns), then I think you will have to re-enter all of the contacts.