I did a receive transaction and it showed up under requests after I saved it then I closed the wallet and reopened it now the request has disappeared.
To actually "receive" bitcoins,
you don't create a transaction and you don't need to use the "receive" tab in Electrum... All you do is give your Bitcoin Address to the sender, and
they create a transaction that assigns coins to your address.
What you did was basically create an "invoice"... the "receive" tab in Electrum is only used if you want to make it easy for someone to send you coins (or you want to create a temporary record as a reminder to yourself that you're expecting payment to a specific address for a specific amount)... Basically, Electrum lets you create a "request" that will have your address and the amount you want and send it to another person. That other person can simply click "pay" or scan the QR code etc and their wallet should hopefully autofill all the fields.
It is also not showing up in the history section and I havent received the transaction. What has happened?
Creating a "request" is simply a record on your local wallet, to assist you matching incoming payments to requests... like receipts and invoices. So, you won't see anything in your history section... until the sender actually broadcasts a transaction to the network.
As for why the request has been removed from the "requests" list on the "Receive" tab? Either, you've opened a different wallet file... or it's also possible that the request "expired" (they can be setup with an expiry time) and was removed from the wallet.
NOTE: not having the request showing does NOT affect the ability to receive coins... you do NOT need to create requests to receive coins.