Gravity provides ONLY a force of attraction between all forms of matter and energy.
Electromagnetism provided ONLY attractive or repulsive forces between matter which carries electric charge. It is possible to get the acceleration of gravity and the force of gravity by using two charged particles of opposite charge, but numerically all you would have is a force field that mimics one feature of gravity. Take away the charges and the similarity immediately vanishes. Contrary to what some science fiction stories might imply, we know of no electromagnetic analog of gravity. We can however create electromagnetic force fields with charged matter that can alter the total forces they feel due to gravity.