Good writing involves planning.
As a first step, you will want to understand the writing situation and your assignment. It is a good idea to explore ideas and form a tentative thesis before you actually start writing, and you may want to develop an outline. You will generally move from planning to drafting to revising, but be prepared to return to earlier stages as your ideas develop.