Huddersfield Town earned all three points in a great team performance against Birmingham City in the Sky Bet Championship.