Calpine was hurt by the California energy crisis , which sent prices soaring after the company locked itself into long-term contracts , and by the collapse of Enron , which provided much of the liquidity in electricity-trading markets .