Read all kinds of books. Books in your genre will give you a sense of what works versus what doesn’t and what tropes are especially common. Books outside your genre will help you look at things from a fresh, more creative perspective. Good books will teach you how to write well. Not so good ones will teach you things to avoid and help you think about how to fix problems in other people’s writing and your own.