The snippet you've included will not work on its own (if you've dropped that into your functions.php
file). You'll also need to ensure that you call your function with the proper hook like so:
add_action('wp_enqueue_scripts', 'accordion');
This will tell WordPress to run the accordion
function when it's time to enqueue the scripts.
Additionally, you might want to rename your function to something more generic such as load_resources
and you can enqueue all of your scripts that you'll need inside that function.
If you're doing that successfully, but you still have problems, you might check the Net tab of your developer tool and see if the browser is at least attempting to load the file (if even from the wrong location).