The nail feels warm because some of the energy used to overcome the force of friction between the nail and the wood changed to heat energy.
(the energy; used; to overcome the force of friction between the nail and the wood) (some of the energy; changed; to heat energy)
the energy some of the energy
used changed
to overcome the force of friction between the nail and the wood
to heat energy