Lost motivation means that you broke promises to yourself and haven't corrected them yet. You need to believe in yourself again. This can only happen when you start fulfilling the small promises you make to yourself.
We have a saying in Germany. It is better to have loved and lost than to engage in a land war with Russia in the winter.