Why wont my doors lock? (video)

So whenever i try to lock the door when its open it unlocks, and also the lock on my key fob isnt working (unlock does) so i cant lock my car, any suggestions?