Both sentences are grammatical meaning is correct.mada,purezento wo katte imasen.(
まだ、プレゼントを買っていません。)That shows the current situation.(mada,purezento wo kaimasen deshita)まだ、プレゼントを買いませんでした。That means ``I dared not to buy the present (now)`` The nuance is little a bit different.