How to feel empathy and compassion when I don't have one, I think it's a spiritual problem, can you advise me?

I recommend the following:
1- Avoiding sins as much as possible. Sins sometimes reduce’s one’s capacity to be empathetic and compassionate.
2- Remembering death several times a day
3- Avoiding haram food or food bought with haram money.
4- Keeping your promises with Allah and the people.
5- Sponsoring an orphan
6- Visiting the sick (especially the disabled).
7- Saying “Astaghfirullaha wa atoubo elayh” 70 times a day
8- Eating less meat and more grains like lentils