wp_enqueue_script Doesn’t Work?

I was having this same problem too, turns out the function wp_enqueue_scripts(), removes any blank spaces from your template directory folders. So say your folder name is this theme, the function will make it thistheme, which will then cause an incorrect directory link. Try changing the folder names around if this is the case, otherwise it worked for me so good luck!