Gravity acts all of the time, when you apply force to a projectile it has to be more than the forces of the gravity and air resistance together so the projectile can move, when the rock is at the top of its trajectory the force that you applied at the beginning is getting lost, so the other forces (air resistance and gravity) make the rock fall to the floor.
For a charge concentrated nearly at a point, the electric field is directly proportional to the amount of charge; it is inversely proportional to the square of the distance radially away from the centre of the source charge and depends also upon the nature of the medium.