If you lose motivation then either you don't know what you want or you don't see any evolution in reaching that point. Ether way keep going forward.
Even if we lose our motivation, life will continue. nothing can change your life if not yourself. you may lose your motivation inside, but you will not lose your family that always motivates you to keep getting up and struggling,