We've all been through it. Once in a while, it seems like we lose control of the events occuring in our lives, and it feels seemingly impossible to get back on track. The trick is to remain positive and definite in our abilities to take control of the steering wheel again.
The worst thing one could possible do at this time is stress out and panic. Yes, I realize that stressing your mind out is fairly easy, while trying to remain calm is a bit difficult. Just remember, if you want to get out of this rut, you have to clear your mind and start anew.
Once you've regained bits and pieces of your mind, hopefully it won't be too difficult to accept that you have failed. Let me phrase that differently: you have tried your best, but it did not work out this time. You need to affirm yourself by saying that life is all about learning, and this time, you learned.
3. Formulate a plan
Formulating a plan to get back on track will take time, effort, and trial-and-error. Patience is key, my friend. You might fail again after creating a new plan - you might succeed. The key is to figure out what went wrong, and what you can do to improve.
Whether or not you fail or succeed, don't be hesitant to reach out to teachers, friends, family, if you are struggling. Whether it's school, relationships, or personal problems, just remember that you will always have a support system, and lastly, it's not the end of the world if you fail.
Life is mostly about trial-and-error. Sometimes you will fail. Sometimes you will succeed.