How to check Z axis for Homing - CNC

Hi,

I tried to home]ing for CNC Router. But it works only X and Y-axis. Z-axis nothing happened.

Someone help me out?

Software: UGS
Command : $H

What firmware in your controller? Grbl? Is Z axis homing enabled in config.h?