When do you use a comma in a sentence?

to denote an omission

to mark the end of a sentence

to show a pause in a sentence or separate items in a list

to indicate an abrupt break in thought or structure

All of the above are instances when you would use a comma in a sentence.