We use simple past tense to express an action which took place in the past or was completed before the time of speaking
We use present perfect tense for an action which began in the past and completed by the time speaking/or results of which we can notice in the present.