Markets definitely have their issues.
Here are a few:
* The most obvious one is the fact it's an overhead, it doesn't produce goods or services by itself. That's not a major issue, but for example in the US ~5% (~7M of ~150M) of the workforce is dedicated to this overhead.
* It's prone to internal instabilities. Too often, the markets disconnect from the underlying economic reality, sometimes with only mild effects (for example, that time petroleum prices went negative), sometimes with more serious ones (2008).
* It can lead to overly quantitative views, ignoring the qualitative. It's the "metrics becoming the objective and thus compromising the value of the metric" (example: tech stock prices).
* It over-emphasizes individual interests over the collective one (think for example: environmental issues & global warming).
Markets definitely have their issues. But so far, the other systems we experimented with (planned economy) were even less able to cope with the incredibly difficult task of balancing an economy.
Lastly, it is to be noted that we are not operating in a pure market economy.
We are in an hybrid system where States (hopefully representing their people) definitely have a lot of say in economic matters and that's probably for the better.