Thanks for the pictures. You are using an Uno clone.
The first step is a good schematic and inventory of parts.
This discusses powering a servo:
https://docs.arduino.cc/learn/electronics/servo-motors/
How healthy are your 4xAAs? Are your connections all reliable? Do you have equipment to check the power supplyig the board and supplying the servo?