Unless I'm hopelessly confused, when the motor turns both sprockets turn and drive the chain. But the freewheel inside the assembly allows the pedals to remain stationary. If the sprockets are turning fast enough, you might not be able to pedal fast enough to engage the pawls of the freewheel. It might freewheel till you pedal harder, and catch up with the motor.
The freewheel is never allowing one sprocket to turn, but not the other. Both sprockets turn if the motor runs. Both sprockets turn if you pedal with the motor off. It can still coast though, by using the rear gear freewheel, if there is one. Coasting, the chain will not move, nor the pedals, just like normal for most bikes.