Properties of electrostatically-driven granular medium: Phase transitions and charge transfer