Gained all the weight

I have no motivation and can’t seem to even write up a plan for myself every day. I saw some success, but now I feel like I am an absolute failure. I have gained back all the weight and possibly even more. There is no point.