Good afternoon eyad998,
I understand you are having an issue with your iPhone X running out of storage and not being able to update or restore. The resource below provides the troubleshooting for this (some of which you have already tried). The next step would be to restore the iPhone to factory settings, which will erase your device.
If your iPhone, iPad, or iPod touch won't turn on or is frozen
"Contact Apple Support to set up service if you have any of these issues:
- You still see a black screen after charging, force restarting, or following the steps in this article.
- Your device is stuck on the Apple logo, displays a solid color, or isn't recognized in iTunes."
Restore your iPhone, iPad, or iPod to factory settings
Since your iPhone was out of space, I would suggest not restoring from a backup. Set up the device as new. If you had iCloud features like contacts, calendars, photos, etc. enabled, turn those features on to sync that data to your device.
If you had iCloud Photos enabled, select the option to "optimize" which will free up space on your device by keeping the original, high resolution photos in iCloud instead of on your iPhone.
Set up and use iCloud Photos
Change your iCloud feature settings
Take care.