Q: Does "break" have the same meaning in the following two sentences?

Break a promise.

Break a law.

A: the same meaning

Q: Does "part" have the same meaning in the following two sentences?

He wanted to feel a part of something bigger than himself.

She played the part of Desdemona.

A: different meanings

Q: Does "ability" have the same meaning in the following two sentences?

This wood has the ability to fight off insects, fungus, and mold for a considerable time.

This phone has the ability to have its software upgraded wirelessly.

A:
the same meaning