Try to attend jamaat prayers in your local mosque in order to maintain your prayers
Regarding masturbation, try to spice up your married life so that you do not have to resort to it. Your wife can pleasure you with her hands if that is what you would desire.