An epic is a poem; most epics started as oral tales that were passed down from generation to generation (often in the form of songs), which is why they're poems. A legend and a myth are more similar, but a myth most often explains something about the universe. So while there might be a legend about a man who slayed all the dragons, a myth would be about the man who caused it to rain, or how humans were created. Those are the basics differences.