How do I become a better writer?

A few years ago I started writing a book. It’s been a slow process and I keep going back and rereading and changing things. I just never seem to be happy with the results. I think for the most part, the dialogue is okay, but the rest just seems to fall flat. What can I do to help bring my book to life?