There’s pedal assist bikes which means you have to pedal it to go and the motor adds torque as you’re pedalling. They are most common in the mid drive style meaning the motor is attached where the pedals are.
Then there’s hub drive bicycles. Most of these are push a button and it will go for you, no pedalling needed.
There are trade offs for both and it depends what you’re looking for and if the pros outweigh the cons for your needs.
Me and my girlfriend both have mid drive pedal assist bikes and they are costly.
Hub drives are cheaper but they have a limited range if form factor is a concern.