Your question isn't clear. If you mean the If the block is attached to a spring and the spring is attached to a rigid wall, then the net force on the block when moved from its equilibrium position would be the spring constant times the displacement in the direction opposite to the displacement of block.