When your wolf dies permanently, you can choose to carry on the story of the pack by playing as a packmate -- either your wolf's mate, or an offspring (yearling or older).
This option is only available in Ironwolf mode, or when your wolf reaches age eight and becomes an Elder Wolf, then dies (whether killed in-game, dies in their sleep, or through a peaceful death).
If you choose to play as your wolf's mate, your pack will continue with the mate (now your player-wolf) as a solo parent. The Find New Mate quest will be triggered so you can seek out a new mate as you like. Your pups will continue to grow up and eventually disperse.
If you choose to play as one of your wolf's offspring, the widowed mate will disperse soon if male, or may stay in the pack as grandma for awhile. Your new player-wolf becomes the new pack leader, who must find a mate if you wish to have pups next spring. The siblings of that wolf remain in the pack and will eventually disperse.