Hi,Welcome to Just Answer, My name is XXXXX XXXXX forward to helping you today.
this is a bad control board . the ticking you hear is the relays on the board, you need to order and replace the control board . I have included a link below to the control board.
click here this comes with instructions and is a common failure on the refrigerators.
best wishes , Bryan