How to execute functions simultaneously in this case?

do you really mean simultaneously? do stepping the motor 3000 times really take as much time as toggling an LED?

what do you really need?