I was into fitness a decade plus ago, trying to put muscle on a scarecrow body; I used machines and did bodyweight stuff and got sort of toned and stronger, but it wasn't a big difference. Did a lot of research, found that the ultimate way is freeweights, for every goal except (focused) cardiovascular fitness.
Basically machines are useless and a scam; they isolate one tiny subset of muscles (or sometimes one literal single muscle) which is detrimental to overall progress. You want to use as many muscles as possible usually. Using muscles both makes them stronger/bigger
and burns fat. Obviously exactly what happens depends on you body; I had no fat to lose and just put on 15-20lbs muscle in a couple months and got strong af.
What I did was Stronglifts.
Overview of the Stronglifts 5×5 program: schedule, exercises, muscles worked, starting weights, rest times, warmup, tempo, how to progress, exercise order…
stronglifts.com
Basically, do five reps in five sets of (a total of) five different exercises. There are two different "days" you rotate which have a different set of three total exercises each.
You start with just a bar (or dumbbells if you can't manage the bar), and if you can do 5x5 of a weight, you add a small amount next time. And keep going. The rest you can learn about on that page. Good luck