What does "chan", "sama", "sam" and "kun" means japanese?

I was watching some stuff in japanese but i don't speak it, i was reading the subtitles and for a name or figure they say like "ni-sama, ni-chan . . . for ohter thing they use like Orihue-kun or Orihue-sam , , , can someone explain it to me please?
11 answers 11