Ions have charges and ionic compounds are made of one metal and one nonmetal, and they have no charge.
The motor does 20 J of work on the block, it means that the total mechanical energy of the block has increased by 20 J. But the increase in total mechanical energy is equal to the sum of the increases in potential energy and kinetic energy:

So, if the gravitational potential energy has increased by 15 J, the kinetic energy has increased by