how can this sentence be corrected "The ball was hit by the boy."
The sentence was not incorrect in the first place, but it was in passive voice, and both bobby and Kayse have turned it around and put it in active voice.
It's always MUCH better to write in active than passive voice.
http://owl.english.purdue.edu/handouts/grammar/g_actpass.html
http://grammar.ccc.commnet.edu/grammar/passive.htm
=)
The boy hit the ball
"The boy hit the ball."
KAYSE