Fables are stories meant to teach lessons. Myths and legends are also fables.
A Myth is a story that explains the actions of gods or heroes.
A Legend is a story that has been handed down for generations and it can be about a notable person whose deeds are much talked about in his own time.