^^^ What techsensei said.
To add to that, check to see if the bolts holding the cables to the derailleurs are loose. Drop both the front and rear to the smallest cogs, loosen the bolt if needed, pull the cable taut, and tighten the bolt that holds the cable to the derailleur. If you can shift again, great! If not, most likely the cables need to be replaced.