Fob key won't work

Bought 1999 e320 drove it home got up next morning key won't not start car or work at all