Fasting is very helpful to control carnal desires as the Prophetic Hadeeth advises.
‘It is also very helpful to think about the bad results of following carnal desires and the great reward of obeying Allah in avoiding sinful acts.
‘Thinking about those who followed their carnal desires and ended up with nothing but sins and misery will also help in making the person more able to control carnal desires.
‘Wassalam.