I have a seed of 24 words. I put it in electrum but I do not see any bitcoin.
You did wrong when importing your seed to your Electrum wallet that is why you can't see your bitcoin inside the electrum wallet.
You should know first if your wallet from ledger is segwit address or a legacy wallet if it's a segwit wallet you must put the derivation path to /m/49'/0'/0' instead of /m/44'/0'/0' when setup. If you did this correctly it should show your funds in Electrum but if still not make sure that you are using the latest version of Electrum because according to electrum.org "
Electrum versions older than 3.3 can no longer connect to public servers, and must be upgraded"
The current version of Electrum is Electrum-3.3.4 so you must use the latest version of Electrum.