- Run video play troubleshooter
Windows Key+I > Update & security > Troubleshoot > Video playback > Click and run the troubleshooter.
- Use VLC Media Player
It is better to use VLC Media Player which has all the codecs required and will play all the audio and video files.
To download VLC - https://www.videolan.org/vlc/download-windows.html
Disclaimer - This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.