He could be just settling in, if you are consistent with the pellets he will eventually eat them because if food is availible he will not let himself starve to death so it should be fine, and the ham is probably too salty like Liz said. Just keep trying to feed the pellets and he will eventually eat them.