@Harrison While this forum is for 3D printers, it is focussed on Duet3D controller boards (as distinct from Arduino-based boards) and RepRapFirmware (rather than Arduino firmware such as Marlin). You will probably be better served by posting on the RepRap forums, perhaps in this section: https://reprap.org/forum/list.php?160
However, these are the main thing you should look at:
How is your Arduino connected to the A4988 stepper motor drivers? Usually, an extra board is plugged into the Arduino to make it easy to connect the stepper drivers and motors. For the Mega 2560, it is usually the RAMPS board: https://reprap.org/wiki/RAMPS_1.4 (there are later and earlier versions, but this page has a lot of information on the next points, too). Check that the phases of the motor are connected to the correct outputs of the stepper driver. See https://reprap.org/wiki/RAMPS_1.4#Motors. Check the motor current setting, which is done using the trimpot on the driver. See https://reprap.org/wiki/RAMPS_1.4#Drivers and/or https://reprap.org/wiki/StepStick#Adjusting_and_testing_the_current What firmware is the Arduino running? Make sure the pins definition in the firmware matches the pins you are using to connect the stepper drivers How are you controlling the motors? If you're using something like Pronterface and sending Gcode, you may need to home the axes, or set their position (usually something like G92 X0 Y0 Z0), before the motors will move.Hope that helps.
Ian