If a fasting person does not pray, listens to songs and back bites others, would his fast be accepted?
The actual goal of fasting is to stop us from sins. If a person does not refrain from sins even while fasting, then though the condition of compulsory worship would be fulfilled, he would not be entitled to the rewards (Ajr) of fasting.
Prophet of Allah صَلَّى اللّٰهُ عَلَيْهِ وَسَلَّم said:
If a fasting person does not stop lying or cheating, then Allah is not in need of him to refrain from his food and drink.
Sahih Bukhari :1903
There are many people who fast but gain nothing except for hunger. There are many people who pray at night but gain nothing except for a sleepless night.
This shows how important it is to refrain from sins.
Fasting does not mean staying hungry or thirsty only; It actually means to refrain from sins.
واللہ اعلم و بالصواب