Have you installed the 100µF capacitor across VMOT and GND as shown in the minimal wiring diagram in the "Using the driver" section of the A4988 product page? If not, it is possible that you damaged the A4988 with an LC voltage spike since you are using a 24V power supply.
Also, have you set the current limit for the A4988 to the 1A rating of your stepper motor? If not, you should set it per the instructions and video in the "Current limiting" section of the A4988 product page.
If neither of those things help, can you post some pictures of your setup that show all of your connections?