Please format your code like these instructions:
https://community.gamedev.tv/t/how-to-apply-code-formatting-within-your-post/23099?u=edc237
From looking at your screen shots, it appears that you did not save the scripts in VSC. If you make changes to a script, you need to save before switching back to Unity.
What did you change that stopped the movement from working in the targeting state?