The most likely cause of fudge not setting is that it was not heated to a high enough temperature or for long enough.