When you leg falls asleep it is a result of a lack of blood supply to your leg so if you are having the same problem with your penis, then it is probably a lack of blood supply to that area, which would explain your problems with sex. When your penis becomes hard, it has an increase in blood supply - so this could be connected.
You need to go and see a doctor and let them explore all options.
best of luck