No, Ofgem does not control the price of gas and electricity beyond setting the energy price cap level. The price of energy is set by thegas & electricity suppliers. The energy suppliers say the price of energy is mostly influenced by supply and demand, which affects the cost of buying gas...