Baby fighting when trying to burp them

Lol so alot if the time my baby jerks his head back or just plain will not corporate when getting burped, he'll flail his arms around and won't let me get a grip on his chin. Anyone else have this problem with their baby? Why was the cause? Also when did your newborn start sleeping through the night