Trying to gain muscle

Helen

I’m 5’3 and I weigh 119, I would like to gain weight in muscle but somehow I can’t seem to maintain my weight. I see my self getting closer to my goal and then I start losing weight all over again. Any ideas on how I can maintain the weight. I do exercise with weights and I still do cardio.