According to the Preamble, why was the Constitution written?

to provide power to the states
to give power to the federal government
to provide a common defense