There is no real consensus among economists about the causes of stagflation.
I got a good idea of what forms it, the lack of value in a transaction especially the lack of price certainty. If inflation is occurring some will equate this to growth, nominal figures rise. Whats actually happening is during my business I might barely make a profit for all my efforts, by the time I order the base commodities and processed with labor a product to sell, distributed and retailed this product; all this amounts to time for inflation to deduct any profit margin.
Quite easily any business activity is attacked like acid decay over time, reduced and impaired till value gained is near zero with nominal figures only showing some gain for efforts and investment made. Any product or business I can flip over night becomes the bias in the economy. Nobody will want to stand around long enough to lose money on their balance sheet to this inflation tax from government.
Price controls dont work, whatever came next it wasnt any worse then pretending you dictate a price. Ultimately government orders amount to violence on the economy, its brutalizing in its effect and damage done. By that I mean if you disagree with a price control you become a criminal, its not a solution to anything actually you have reduced the market, increased rigidity and the situation with fracture imo Any time production drops you can cause harm and it easily raises the price (vs demand which is unaltered) so price control ironically can actually raise a price.
Government with its thumb on the scales can easily start a failure situation, at the least supply will ship aboard. Energy export was banned till recently I think and there's dozens of anti competitive laws causing problems for industry and an open market to be most efficient. https://www.cato.org/blog/russian-oil-table-jones-act-serves-barrier-using-domestic-supplies