That depends on which phone it is, and which symptoms it's experiencing. Some may just need a reboot, others a factory reset. In some extreme cases, re-flashing the entire OS from scratch is needed. If it's only one app causing a problem, that would have different steps to address it. If it's a hardware fault, then it will require a physical repair.