The first example would have to be:
The pen has broken <something>
THAT sentence is active voice, since the pen is breaking something else.
However, I honestly don't see that sentence being used much.
The pen got broken
This is passive. A better way to put it is:
The pen has been broken
OR
The pen was broken
There is some confusion here, because you could be saying the the pen was broken (in a broken state) in the past. Some context would be needed.