Whenever your plans fail (and they fail more often than not), do introspection and try to figure out what went wrong on a psychological level.
Did you set unrealistic goals? (Setting yourself up for failure lets you off the hook but doesn’t get you anywhere.)
Did you set too ambitious goals? (Good, goals should be ambitious, they’ll help you stretch yourself and grow.)
Did you set an unrealistic timeline? (If you know that you’ll fail before you begin, you might as well don’t try at all.)
Did you set a too ambitious timeline? (Good, it means you wanted to avoid the trap of perfection and focus on the things that make the most significant difference.)
Answering questions like these honestly can show you what went wrong, and more importantly, help you understand how to make your next attempt more likely to succeed.