My best guess is, the drugs you are taking are a problem. Fluoxetin, known as Prozac in the US, is a SSRI, and they are notorious for causing various sexual dysfunctions and libido loss in men and women. I assume by Reagil, you mean Reagila, which is an anti psychotic. I didn't find anything on it being linked to sexual problems, but weight gain is a common side effect.
Beyond that, it sounds like you have a lot of anxiety about sex, and that is an erection killer in itself. We have several nervous systems that regulate our bodies. The autonomic nervous system regulates most of the machinery of life, like digestion, heartbeat, all the various glands that secrete regulatory hormones and neurotransmitters. There are two halves to this system and one or the other is in charge at all times. The Sympathetic Nervous System is the Fight or Flight system that regulates your body during stressful moments, anything scary or stressful. The Parasympathetic system is the Rest and Digest or Feed and Breed system that takes over when you are relaxed. If you are stressed out over sex, your body will shift to the Sympathetic system and one of the things it does is ready you for battle, which among other things includes cutting blood flow to parts not needed for fighting, like digesting food or sex. That means no boner for men and a dry tight pussy for women. It is very hard to get an erection if you are stressed out. This is a feedback loop that almost always plays a part in erection problems with men.
You need to talk with your doctor about getting off those drugs. Unless you have serious problems, taking anti-depressants and anti-psychotics is likely to cause more harm that good. Up until a few decades ago, people managed life without drugs like that. You also have to be less stressed out when you have sex. It sounds like you can get an erection with porn, so the equipment works, which means the primary problem is the stress you feel, likely from pressure to perform, that is the problem. Perhaps address this with your wife and work together on reducing the stress you feel from pressure to perform. Do not quit those drugs without consulting your doctor. That can cause major problems.