These things happen! Since I started SP I was worried I had ruined everything, not worked out, eaten more junk than I would've liked. I beat myself up for over a month after my injury. I thought I'd completely lost my motivation. But you know what? I think these things are normal and part of the journey. Don't give up.
Pick up that glass (or bottle) of water and drink some. Notice how hydrated and refreshed you feel.
Put down the candy. It will make you feel lethargic. Eat something fresh. You're recovering from an illness and your body needs nutrients to feel its best and recover.
Motivation isn't linear I'm discovering. You might feel really motivated for a while and then not at all. That's ok. Motivation will come when you are able to start moving again, take it slow. That was another thing that was hard for me after my injury. I wanted to do everything I did before and the doctor said to start with walking, pilates (good for the back), and some stretching. I was frustrated but when I started moving again, walking, stretching, my body felt SO much better.
You can do it! Don't give up. Stay on SP. You can get through this!