OK, if I can decipher what you're attempting to say there....
The driver's door won't let you lock it with the pin, unless you're sat in it with the door shut. This is to stop you locking your keys inside the car, and is fully intentional.
And the second point... are you saying the door doesn't shut properly sometimes? Don't quite see what you're saying there.