To prepare for repainting:
Wash the wall to remove any grease.
Fill any holes and cracks with suitable filler, perhaps using flexible filler for cracks.
Sand and prime the filled areas—priming will seal the filler and keep it in place.
Repaint the wall with at least two coats of your new color.