The shuttle program had several problems, but perhaps the biggest was something of a "design by committee" issue. Too many interested parties wanted it to do too many things, making it somewhere between bad and mediocre at all of them, to say nothing of the costs.
To build reliable, economical rockets and spacecraft (at least those burdened with the task of escaping Earth's gravity well), you need to be able to intensely specialize and streamline them to the greatest degree possible, with what complexity remains pulling its own weight several times over. They need to be really good at one thing, with any other use cases coming as a bonus.