S + V + O
The girl ate a piece of cake.
"The girl" is the subject in this sentence. She is the one who is doing something
"ate" is the verb in this sentence. This is here the "doing" word. This is what the girl is doing.
"a piece of cake" is the object., which is being eaten.