Decide what you want, how bad you want it, and set attainable goals. Want to lose weight? Set a reasonable number and put a plan together to get there. I will lose 10 lbs in 30 days. Then put a plan together and don't veer off of it. As far as fighting cravings, I have two thoughts. 1. Think of which is more important, a healthier you or a turkey sub with mayo. 2. Put foods you like into your plan as long as they keep you within your calorie goal. Small portions of your favorite foods can be fit into any plan within moderation. You clearly know what it takes to stick to a plan. Now it's a mental thing. You could also set goals according to workouts - I will workout 4 times this week. Then make sure you do it. Reward yourself.
I am a collector of tattoos. (Don't judge me.

) So I set goals and reward myself that way - when I lose 3 inches off of my waist or 15 lbs, I will make an appointment with my tattoo artist. Stuff like that.
Good luck!