Well, it could be a few things. I had a betta refuse food for 2 weeks after I bought him!!! Grr!!
Some bettas have an adjustment period.
Also depends on the food. If the pellets are too big, or even they just do not like the type/brand...
And cold water can cause this too.