Fetching details from the dictionary...

to hit (e.g. one's head); to strike; to knock; to run (into); to crash (into)
to throw (at); to fling (at); to hurl (at)
to vent (e.g. one's anger); to express (one's feelings); to throw (a question at someone)
to pit (someone) against; to set against; to match against; to put up against
頭をドアにぶつけてしまった。
I accidentally hit my head on the door.
子供がボールを壁にぶつけた。
The child threw a ball at the wall.
暗い廊下で頭を棚にぶつけた。
I hit my head on a shelf in the dark hallway.