fridge and freezer not working

my freezer and fridge are not cooling. the lights are on and everything seems set right. It is making a clicking noise then hum then click. any ideas on getting it working again?