On-Premise hot, warm, and cold storage

Hi I’m Juan,
I am looking for a way to do a hot, warm, and cold storage in my On-Premise MongoDB deployment. I am doing it with sharding but i dont understand how that really words. How the data distributed across the differents database is going to be affected if there are n shards?
Any advice or any help is wellcome
Thanks in advance