Barre chords can be tough especially if you're new to guitar. If it doesn't sound like it should, it's most likely in your fingers. Make sure you're holding all of the right notes down on the fretboard.
There's a great lesson on how to break up the barre chord to play it a bit easier right here: https://www.guitartricks.com/lesson.php?input=27963
Hopefully that helps you out!