Hi sir...
cavitation is due to amount and frequency of carbohydrates,
sugar content u took.....It is not due to smoke or drinks ....
GET x_ray (IOPA) of the involved tooth done....
If the cavity is deep reaching inner pulpal layer , you need to go for Root canal treatment..
If the cavity is superficial, then you need to go for simple filling done...
Next Steps
kindly visit dentist as soon as possible ...