As a 100% Vietnamese, the two sentences describe the action of someone gives a pen to someone. If it is just written for that purpose, then the first sentence is perfect for native speaker level. The second is perfect when you wants to confirm the fact that he gave you the pen. Hope it helps. Enjoy your learning the language too, ;)