People say "Treat people like you like to be treated"
"Treat people how they want to be treated"
Every one of us is different, some like public praise others in private etc.....You need to understand the motivations and demotivators of each person around you, and respond to that. I used to be captain of a sports team. Some needed to be shouted at, others an arm around the shoulder when things were not going well. Leading is about understanding which technique works with which person.