What is the difference between logicism and formalism?
Is there a conflict in being a formalist and logicist?
There is a big difference, and that is truth.
Formalists tend to look at mathematics as a game played by following rules to manipulate symbols--- that is, they tend to reduce mathematics to its syntax. For them, there is no question as to whether the axioms are true, they are just framework presuppositions of the "mathematics game".
Logicists, on the other hand, tend to think that the axioms are true. In fact, the claim that mathematical axioms are true in virtue of logic alone is the distinctive claim of Logicism.
(DISCLAIMER: There are subtler varieties of each view that may not be adequately captured by the above statements. This answer deals merely with the views in their most generic senses.)
I suspect that Formalism was inspired by the turn towards language inspired by Wittgenstein, and also by certain movements in mathematics; specifically Hilberts programme to formalise mathematics, in fact that is to reduce it to logic. Also the invention of model theory which allowed mathematicians to examine their own discipline through the mathematical microscope was further inspiration to that philosophy. (That is by taking as axiomatic that a theory is simply a set of self-consistent axioms with classical logic - that is a grammar).
In this sense formalism and logicism are closely implicated in each other.