What can cause this sudden inability to concentrate?

Many things could . Cause an inability to concentrate from stress and anxiety to physical disorders. Speak with your physician and check out the medical possibilities first. If there is not a neurological or physical issue consider psychotherapy to see what emotional things may be interfering with your concentration.