German is a "V2" language: In a declarative main clause the verb always has to be in the second position. There are some conjunctions that can occupy "position 0" (e.g. "aber"), but "dann" isn't one of them.
→ https://en.wikipedia.org/wiki/V2_word_order