My oscillator of 40Khz is not giving 40Khz signal at the output
Your series resistance of 150 k&Omega; is very high.  That's simply not giving the crystal enough drive, and drops the overall loop gain too low.  Try much lower values.

Also, check that 33 pF is a valid load cap value.  Often these low power "watch" crystals are rated for just 5-10 pF.

Basically, read the datasheet of the crystal.  None of the above should be a surprise.