"All" and "whole" both mean every part of something, but they go in different places in the noun phrase and work with different kinds of nouns. "The whole team" and "all the team members" are both fine; "the whole money" and "all whole day" are not.
Whole is an adjective, so it sits between a determiner and a singular countable noun: the whole day, my whole life, a whole pizza.
All comes before the determiner instead: all the students, all my money, all this time. All works with plural and uncountable nouns (all the books, all the information), while whole normally does not work with uncountable nouns: say “all the money”, not “the whole money”. With time words, all usually drops the: all day, all night, all week, which mean the same as the whole day, the whole night and the whole week. Before a pronoun use all of (all of them, all of us). Before a place name or a time phrase you can also use the whole of (the whole of Europe, the whole of last year), a slightly more emphatic alternative to all of.
Use the whole, my whole or a whole before a singular countable noun
She ate the whole pizza.
Use all + the, my, this or these before a plural or uncountable noun
All the students passed and I spent all my money.
Use all with no the before day, night, week, month, year, morning and similar time words
It rained all weekend.
Use all of before a pronoun
All of them were late.
Use whole before a plural noun only when you mean complete ones, not every one
Whole villages were flooded — entire villages, though not necessarily every village.
Learn the fixed phrases as units: the whole point, the whole truth, all in all, and not all bad.
Practice
I workedday yesterday, and I'm really tired.
She ate thepizza by herself.
the students passed the test.
Which sentence is correct?
class laughed at the teacher's joke.
Myfamily lives in Chicago.
Did you readthe emails from the manager?
I've lived in this town my _____ life.