Akkusativ or Dativ ?

I am having a hard time understand when I should use akkusativ and when dativ. If someone could explain it to me , I would be grateful 😅

Sorry if my question sounds stupid