Below are some simple steps you can try to fix YouTube videos loading but not playing:
Clear cache, cooking, and browsing data.
Refresh the browser page.
Reduce the video quality.
Disable plugins.
Troubleshoot to check internet connection problems.
Use a temporary file cleaner.