To help you get your simulation up and running quickly, tell me: What are you currently using?
If you can tell me what (e.g., Arduino Uno, ESP32) you are interfacing with, I can provide a pre-made simulation schematic and sample code for this library. a4988 proteus library download exclusive