Q:

Why didn't Pakistan face any sanction from the USA for sheltering Osama Bin Laden?

The question stems from the fact that USA invaded Afghanistan in search of perpetrators with 9/11 connections. Osama Bin Laden was believed to be an aide of 9/11 perpetrators. 
Pakistan believed to have been sheltering Osama Bin Laden which makes Pakistan a perpetrator, too.
Why didn't Pakistan face any sanction from the USA in this regard? 

A:

Pakistan has been considered a U.S. ally since the cold war. They didn't face any repercussion from sheltering Bin Laden in order to maintain that status and avoid a lot of uncomfortable truths for both nations. The entire raid on Bin Laden's compound was done without notifying/getting permission from Pakistan, which could easily be construed as an act of war. The U.S. never formally stated Pakistan was harboring Bin Laden in part for them ignoring the U.S. raid violating a lot of laws/agreements.
Russia is a very different situation for a lot of reasons.

They aren't/weren't an ally post cold war.
They invaded a sovereign country the U.S. had a defense pact with.
Interfering with elections is a pretty big deal to the country that it happens to. There are a whole lot of countries that don't like the U.S. because of this.
Attempted assassination of an ex-spy in a foreign country is very similar to what the U.S. did with Bin Laden, only Russia didn't have any leverage over the U.K.

A:

If you go by the officially published facts, nothing was revealed that directly showed that Pakistan was aware of bin Laden's presence, or that Pakistan made an effort to conceal bin Laden. 
The US raid was carried out without even notifying Pakistan ahead of time, let alone get their permission to carry out combat operations in their country, which is essentially an act of war.
So, officially Pakistan was unaware of bin Laden's presence, and action against their government isn't called for because officially, they weren't actively sheltering him. 
What actually happened may be a different matter. There are several aspects of the official narrative that don't make sense, such as how the large fortress like compound where bin Laden was living could be built near a Pakistan army base and not draw the attention of Pakistan's ISI, one of the better spy agencies in the world. 

