A new laptop doing this is a warranty call.

An old laptop doing this is you undoing changes you made or using System Restore to when it worked and if that doesn't work, a factory reset.