Itchy Ears

We always check and make sure my dogs ears are clean, but idk why he keeps on scratching it. Sometimes he sounds crying why scratching it. Any advice what should we need to do? He had an ear infection before but it was all healed after we go to the vet.