kitchen aid will not cool

compressor kicks on continiously the fan next to it is also on. all the controls work but the freezer or the fridge will not get cold and the compressor is hot to the touch and does not stop running