1. As a determiner:
* All the students were excited for the field trip.
* I ate all the cookies.
* She gave all her attention to the presentation.
2. As a pronoun:
* All is fair in love and war.
* I lost all my keys.
* The team worked together, and all contributed to the success.
3. As an adverb:
* I was all set to go to the party.
* He's all dressed up for the interview.
* The children were all aflutter with excitement.
4. In phrases:
* All of a sudden, the lights went out.
* All in all, it was a successful trip.
* He gave it his all during the competition.
5. In expressions:
* All the time I was thinking about you.
* All things considered, it wasn't so bad.
* All I want is to be happy.
The way you use "all" will depend on the context of your sentence.