My comment was helpful, because you are demonstrating a lack of knowledge about why you gained weight.
Even your reply implies you think you need to consciously decide to gain weight for it to happen - which is very much not correct.
You can’t fix something if you don’t understand the whys involved.