It is not known if metabolism came first or genetics. The main hypothesis which supports genetics first is the RNA world hypothesis, and the one which supports metabolism first is the protein world hypothesis.