U.S. citizens and residents must pay tax on their worldwide income. There is a limited exclusion for earned income (up to $103,900 in 2018), but there is no exclusion for gain on the sale of property abroad.
Compensation for performing personal services. You must have earned income for a deductible IRA or to claim the earned income credit.