Practice, practice, practice. That's it. Don't shoot for stars when you first start making more complex dishes. You will make bad food, it happens. Find a style that you want and just experiment with it, with flavors, foods, everything. Cook books are good to start, they will give you the basic idea of what spices/seasoning go good together. They will also introduce you to new ingredients. Once you get the knack you can use them to get ideas. Start taking the things you know how to make and change them, do it a different way, anything.
Also, ask questions here. If you see something you like, or want to know how to do something, let us know.