Russia-Ukraine Conflict: Why sanctions on Russia created no deterrence?

The sanction imposed by the West has not stopped Russia from halting the invasion of Ukraine. Reportedly, no sanctions have been imposed on Russia’s energy sector.