Germany's ruling coalition collapsed after Chancellor Olaf Scholz sacked Finance Minister Christian Lindner. New elections will take place in February.