An acid like lemon juice is necessary to keep the sugar from crystallizing, which is why all jam recipes have lemon juice. So, to fix crystallization, simply heat the jam in a microwave or clean saucepan over medium heat. Then, add lemon juice and cook until the sugar has melted again. This should fix it.