You are not a failure! You were doing well and got ill; it's not surprising you stopped losing.
Are you completely recovered? If not, consider waiting until you are before you start thinking about weight loss again.
If you are well again, are you sure this is the best time of year to start again? In my experience, you have to be in the right frame of mind to start and stick with it. Ask yourself if you can start before Christmas or whether you'd be better waiting a few days longer.
Whether you choose to start now or a little later, sit down with your books and plan some menus, check your cupboards and sort out your shopping. Don't forget to give yourself some 'treats'! A new issue of the magazine is due out soon - get a copy as that will inspire you to start again.
Remember - you can do this, because you have before. You will get a lot of support from people on here, particularly if you start a diary.
Good luck.
PS If you have been eating 'rubbish, some of your weight gain will most likely be water and you'll lose that pretty quickly which will be encouraging!