I repeatedly start regular namaz however soon start missing Fajr and Zohar /Asr and then entire days again. This happens every few weeks and I’m unable to make Namaz regular. What can I do to make it an habit?

Try to avoid eating doubtful foods, meaning the food which you are unsure that it is paak or najis, halal or haram and be in company of the people those who gives importance to prayers