I understand your issues, it looks that the difficulty you face during the initial part of your relationship had a bearing on your current erection problems. Since you erection is good when watching porn , it suggests of psychogenic origin of your problem . Physically I believe you have no issues. Decoding the various sexual and relationship issues with your wife will help in resolving your problems. This can be even supported or supplemented with medication if at all needed
Next Steps
I suggest you to take online consultation, will be able to help you better
Health Tips
this is quite common occurrence especially among newly married