Stillborn is a baby from 24 weeks that is born but was not alive at birth. Before 24 weeks it is called a miscarriage.
A stillborn, unfortunately, is a baby that has died before birth while still in the womb, and when the baby is extracted from the mother, they call the baby a stillborn.