Hello. Interesting sentence, I hope you didn't actually break a leg:)
I believe "I broke my leg" is more convinient to use but "I got my leg broken" can be used as well.
I think the second sentence is not just a statement, but also refers to a situation.
Even if they are correct in my opinion, you might want to make a longer sentence than that, like where, when, how, etc.