It is not easy to quit smoking. Some people do need a second chance. You also might like to know that for most people, quitting smoking is like learning to ride a bike. You don't just hop on and ride like a champion. It takes a little practice.
Most people try to quit smoking at least once before they quit for good.
You just had your practice. So try again, the important thing is not to view each attempt as success or failure, rather as one more step on the path to success. The process of quitting tobacco involves learning how to cope with the inevitable urges. Call a friend. Take a walk.