You can sell a Module that you don't need in the "Technology" section. To do so, choose a Technology, then select a Module you don't need and tap on it. You will see two buttons: Sell and Exchange. Select “Sell” in order to sell a Module for Resources.