Its been 3 years since i have been trying to lose weight with some dedication and pills, i have been able to achieve some weight loss, i consumed pills for weight and followed strict diet followed by workout, but i gained weight as soon as i stopped training.
I am unable to understand is it the pills that helped me lose weight or was it the workout.
Without specifics had to tell, but workouts burn calories, so once you stopped you stopped being calorie deficit.
This seems likely. Most diet pills are either a total sham, or simply a minor aid to provide a boost. If you kept the same diet, but stopped training, fat gain is likely. Weight training burns calories and boosts your fat burning capability throughout the day.