I also agree with Aissa Walid Benarous but I want to amplify what he says.
According to the kinetic theory of molecular gas, we get the relation:
E=3/2kBT,
where E is the average kinetic energy and kB is Boltzmann's constant given by the ratio of Universal gas constant (R) and Avogadro's number.
You can apply this relation if your particle is a gas particle to explain the increase in the average kinetic energy of your particle with the increase in temperature.
In the case of the solid particles, you need to apply ''The law of equipartition of Energy'' given by the relation:
Average kinetic energy per molecule per degree of freedom = 1/2kBT.
And the degree of freedom of solid = 6
Therefore, the average energy of a particle of a solid =6*1/2kBT=3kBT.
In case you want to explain only the average kinetic energy of a solid particle use the relation mentioned by Aissa Walid Benarous since the average kinetic energy and potential energy of a particle of a solid are equal.