She burned her hand while cooking.

Literal

She [topic-は] cooking was-doing hand [to-に] burn [object-を] did.

~していて ('while doing') uses the te-form of ~している to provide background context for when the burn happened. やけどをする is the standard expression for 'to get a burn.' 手に marks the body part affected. A natural, everyday sentence.