How did the first stars and galaxies form?

How did the first stars and galaxies form?