A fable is a narrative whose characters are animals or inanimate objects. They always end with a moral lesson; this means that they teach values to the readers. Fables are not based on facts.
Fairy tales have persons as characters. These are generally royal members or knights. They are tales of wonder and magic. They are not based on facts but on worlds of fantasy.