Many will say that a person's relapse starts well before they drink/use.
Drugs & alcohol usually are used to self-medicate an existing problem.
See a medical professional (doctor) for an analysis, maybe attend some AA/NA meetings, keep learning about yourself - and importantly - stop back here and let everyone know how you are doing...!