I usually come up with the main idea first (characters, settings, themes), think of an overarching plot or a few arcs, and always, always decide an ending before I start writing. Trust me, you're much more likely to finish if you have an ending you're working towards!