What were you thinking? (你脑子进水啊? )You are out of your mind.( 你脑子有毛病!)
there is some wrong with your head