The original 1st gen Pencil is smooth, slippery and very shiny and has a chromed, metalised top end cap with a magnetic Lightning connector protective cap.
The original, 1st gen Pencil does NOT magnetise to any iPad for charging.
The 2nd gen Pencil looks more like a regular pencil with a flat side ( for magnetic charging on a 2018-2021 iPad Pro or iPad Aor 4 ) less slippery, NO chrome anything at the top of the Pencil.
If you had this Pencil for a few years and never used or kept it charge up, then the very teeny, tiny rechargeable battery in that Pencil is completely and thoroughly dead!
Sorry.
You cannot store and/or NOT use Pencils for any prolonged period of time and NOT keep them charged up to some level.
If your Pencil/s sat around unused or unopened and not kept charged up for more than a few weeks, or so, OR
EVEN LONGER, then the battery in your Pencil may have failed and is dead and you will have to purchase another
brand new Pencil or get, if still under warranty, a free replacement Pencil from Apple.
Sorry.
And it looks like some things about the Pencil have NOT changed in the new version 2 model, either.
FYI and something Apple will never, EVER divulge to it potential iPad Pro/Pencil customers/users unless the potential customer/user is smart enough to ask about,
Due to the “always on and active/standby” nature of the Pencil and, also, due to its very tiny rechargeable Li-
ion battery ( smaller than the eraser head on a REAL wooden pencil ), the Pencil needs to be constantly charged up to some significant charge level ALL THE TIME, even when not using the Pencil for prolonged periods of time.
Apple/Apple Stores or Apple employees will never, ever, mention/divulge this long term issue/flaw of the Pencil.
The Pencil needs to be kept charged to a minimum of 5-10%, OR GREATER, all the time.
If the Pencil battery is allowed to drain down to 0% and allowed to stay in that flat condition for more than a few weeks, or so, OR EVEN LONGER, that very tiny little Li-ion battery is too small to keep at a 0% state for a long period of time and it will fail and the Pencil will be dead and you may have to “pop” for another $99/$129 Pencil, once again!
Apple only has a one-year warranty on any Apple accessory items.
You need to keep your Pencil charged all the time, even if it is only to 10%-15% charge. It must keep some charge level in that tiny Lithium-ion battery at all times!
Sorry.
In addition, what year and model iPad were you trying to use this Pencil with"