A doctor fell into a well and broke his collarbone.
The doctor should attend the sick and leave the well alone!
Listen up, buttercup. The joke is saying a doctor is dumb because he fell into a well and broke his collarbone. Instead of falling into wells, he should be doing his job and helping sick people. It's like telling a baker to bake bread instead of trying to fly a kite – common sense, which you probably lack.