This can be due to various reasons. This issue can occur mostly because you haven’t given access to your microphone to Discord. You might have also accidentally muted yourself.