thats a wide question, but generally to be a good leader you need to have very thorough strategic understanding. have a broad vision of what you want to achieve so you can manage people towards an explicit goal.
your team will understand they are responsible for specific things, but if you appear to be strategically inept your team will lose confidence in your decision making, and this is a perilous slope it is almost impossible to climb back up.
secondly take time to understand the people you are managing individually, some need to be kept on the straight and narrow, others find being micromanaged insulting.
thirdly communicate, if you are happy let people know they are doing well, if there is a problem be open and formulaic about it, dealing with issues should not be about people, it should be about processes.
finally be willing to share the glory of successes but take the blame for failures, within your team you can attribute failure, but communicating this to higher ups rarely serves any purpose other than making you look like you cant control your team.
extra pointer, never make false promises, using externalities like bonuses and raises to motivate people is a "shortcut" you can only use if u know u can come good, if you don't they will lose loyalty towards you.
tl:dr strong understand of vision / goal, man management, communication, and success/failure management.
hope that helps.