Dear student
in equilibrium downwards force on block is balanced by force exerted on itby spring in upward direction so that net force on it is zero.
T=mg=k x (where t is tension in spring ,m is mass of block ,k is spring constant and x is elongation in equilibrium .
Regards