We use (a) to talk about experiences, actions that happened at an unespecified time in the past, or an action that started in the past and continues or is still relevant now (unfinished actions).
We use (b) to talk about actions or events that started and finished at a specific time in the past (completed actions).