How come some authors manage to get their work published while others always fail?

Naturally, hard work is required to succeed. A good story is another.
But if you are prepared to work hard and if you do have something to tell - and still fail - then there may be a reason for it.
It could be that you make fundamental mistakes in the way you narrate your story. The Magic of Creative Writing could help you to set right the mistakes.