Then has to do with time. For intance, it can mean “next” or “at that time.”
Examples:
We ate, and then we went to the concert.
Concert tickets were a lot cheaper back then.
Than is used in comparisons.
Examples:
DVDs are more expensive than CDs.
Arnold is shorter than Nicky.