Answer: Your body sliding against the car seat created friction, making it created potential energy. The friction is a form of electricity, and the car doors metal is a conductor of electricity. That potential energy was turned into kinetic once the metal attracted the electricity, thus making a spark.
Hope this helps ^_^