The government has pledged to revitalise the NHS with promises to cut waiting times and modernising services.