Welcome to this forum.
Your first sentence is in present perfect. (structure: have / has + past participle) while the second one is in simple past. Both of them are correct and make sense. It would be difficult to go for one of them when there's no context.
But keep in mind that:
We normally use present perfect to talk about something that happened at an unknown time in the past. So we can never use present perfect with a particular time expression (e.g. yesterday, two hours ago, etc.)
And we use simple past to say that an action happened in the past and it's finished.