Why  is it important that prices are flexible in our economy?

Why  is it important that prices are flexible in our economy? Do you think  the government should control the level of prices for products that are  really important, ie. gasoline?