Turn key to start. Nothing happens. Lights worked. Replaced starter. No change. on 2003 BMW 525i

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
sometimes after awhile it will start.
(1) Answer
You have to check the thin wire at starter . It hase to have power in it while you start engine. If there is no powerin it it colud be the ignition switch or the key. I would try the spare key and see if same problem is present?These keys hase built in battery that charged trough the ignition switch . The battery in key is not replaceble if battery goes bad in it you have to replace it at BMW dealer.Both key needs to be used to keep battery charged in keys.