Problem using both a dc motor and servo

Forget the 9V PP3 block battery. They won't last for more than a few minutes with a motor, if they work at all.

A 6xAA battery pack will work fine with the L298, but not with the servo.