You need to run your imports in the right order so that all records relate together.
ACCOUNTS need to be imported first.
From there, you can import either Contacts or Deals. Both of those “look up to” Accounts and you can import to the Account lookup field based on the Account Name if that is marked as unique in your CRM.