There can be a couple of reasons why the screenshot feature is not working on your Mac, but for me, the prime reason is when the keyboard shortcuts are disabled.