Servo won't respond with ultrasonic sensor

Could be both. But the vast majority of servo problems posted here are power related so I suggest that you fix that first.