If your caramel has started to crystalise remove it from the heat and beat in a teaspoon of cold water until the sauce is smooth again. Very burnt caramel is unfortunately unsalvageable.