You beat me to it. Star Trek NG had two things; dilithium crystals (almost limitless energy) and replicators. But people still bought things. Remember when Dr. Crusher wanted to buy fabric? (Far Point?) Also holodecks could supply any experience one could want and it was only a matter of “first come, first serve.” It’s impossible to say what effect these technologies would have on a society.
Not to mention, and never broached in Star Trek, is that life spans would be almost indefinite.