If the chain or lever is broken, you will need to disconnect it from the flush valve. This can usually be done by unscrewing or unlatching the connector. Purchase a replacement chain or lever from a hardware store and connect it to the flush valve according to the manufacturer's instructions. Ensure it is properly adjusted for a smooth operation.