If you remove the burfi mixture too earlier from the pan, the burfi won't set. Put the mixture back in the pan and cook for a few more time and set it again. Also, if you cook the mixture for a longer time, it becomes dry and crumbly, and you will not be able to set it even in this case. Just drizzle milk or water and cook until it becomes soft and try setting again.