Every one of us has had moments of despair, when we have asked ourselves this very question. There is no single answer but there is definitely a way to counteract this injustice.
Of course, in order to successfully solve a given problem, it is imperative for us to know exactly what caused it. The causes may be more than one and this is usually the principle that drives unpleasant things to happen - various conditions combine in the worst possible way and the next thing you know, misfortune makes an appearance.
Be aware that failures are often not coincidental, especially when they begin to form a trend. Indeed, sometimes it is possible for the bad concurrence of circumstances to cause failure after failure, but this is a rarity and if you have fallen in such a "bad cycle", you must simply wait for it to pass. If, however, you consistently feel unsatisfied in your life for extended periods of time, something is not right and you must find out what.
It is said that for a person to be truly happy, 3 things are needed: a beloved, a favored profession and friends. Trivial indeed, but true. Think about this and find out exactly where the problem is. Perhaps you are too ambitious and have a hard time with each defeat? You must stop this way of thinking as soon as possible. Our failures are a very real part our life (unfortunately, a larger part of it) and this is simply the natural way of things. Think about all the famous people who have achieved great success. Do you think that this is coincidence? Or that it happened right from the first attempt? Of course not.
Failures and disappointments in life show us only that a particular thing cannot be done a certain way. That is all. Gain experience from each loss and continue to aim for the goal which you have set, while simply changing your strategy. Every thing can be accomplished, it is only necessary to find the correct approach and not give up easily.