Machines increase efficiency, which lower costs, lowering prices, making things generally available, multiplying customers millions of times over. The nature of jobs change, but the amount of jobs increase as resources are used better and better.
Ford put people in the horse and buggy industry out of work, but created millions and millions of jobs for mechanics, assembly line workers, salespeople, etc.,etc. Gutenberg put hand book-copiers out of work, but created endless millions of writers, editors, publishers and printers, since books were now affordable for common people.
Better use of resources simply means that quality of life increases overall. People generally can afford things they couldn't afford before....when the price of things like cars, books, or computers lower to a generally-accessible level, endless millions of customers are suddenly created, those industries explode, obsolete (i.e., expensive, inefficient) industries die off, and jobs shift accordingly. It's called progress.