The question was a bit hard to understand but if you want me to write the sentence in Spanish using the Yo form the answer would be the following!!
Yo me doy un golpe en la cabeza. This is in present form
Yo me di un golpe en la cabeza. This is in past form
Yo me voy a dar un golpe en la cabeza. This is in future form!
Hope this helps! If it is not what you needed please leave it in the comments so I can further help you!